hotspot/src/share/vm/opto/ifnode.cpp
changeset 26173 4275dfc46177
parent 24923 9631f7d691dc
child 28044 ede40159fd3b
equal deleted inserted replaced
26172:7ab032af2835 26173:4275dfc46177
   501   // Look for index+offset form
   501   // Look for index+offset form
   502   Node* ind = l;
   502   Node* ind = l;
   503   jint  off = 0;
   503   jint  off = 0;
   504   if (l->is_top()) {
   504   if (l->is_top()) {
   505     return 0;
   505     return 0;
   506   } else if (l->is_Add()) {
   506   } else if (l->Opcode() == Op_AddI) {
   507     if ((off = l->in(1)->find_int_con(0)) != 0) {
   507     if ((off = l->in(1)->find_int_con(0)) != 0) {
   508       ind = l->in(2);
   508       ind = l->in(2);
   509     } else if ((off = l->in(2)->find_int_con(0)) != 0) {
   509     } else if ((off = l->in(2)->find_int_con(0)) != 0) {
   510       ind = l->in(1);
   510       ind = l->in(1);
   511     }
   511     }