< prev index next >

src/hotspot/share/opto/gcm.cpp

Print this page
*** 231,11 ***
            node->set_req(0, n);
          }
        }
  
        // process all inputs that are non null
!       for (int i = node->req()-1; i >= 0; --i) {
          if (node->in(i) != nullptr) {
            spstack.push(node->in(i));
          }
        }
      }
--- 231,11 ---
            node->set_req(0, n);
          }
        }
  
        // process all inputs that are non null
!       for (int i = node->len()-1; i >= 0; --i) {
          if (node->in(i) != nullptr) {
            spstack.push(node->in(i));
          }
        }
      }

*** 1445,10 ***
--- 1445,13 ---
        case Op_CreateEx:
          // Don't move exception creation
          early->add_inst(self);
          continue;
          break;
+       case Op_CastI2N:
+         early->add_inst(self);
+         continue;
        case Op_CheckCastPP: {
          // Don't move CheckCastPP nodes away from their input, if the input
          // is a rawptr (5071820).
          Node *def = self->in(1);
          if (def != nullptr && def->bottom_type()->base() == Type::RawPtr) {
< prev index next >