hotspot/src/share/vm/opto/connode.cpp
changeset 2254 f13dda645a4b
parent 2131 98f9cef66a34
child 2745 60853c6a93b7
equal deleted inserted replaced
2253:30268d00878e 2254:f13dda645a4b
   431 
   431 
   432 //------------------------------Ideal_DU_postCCP-------------------------------
   432 //------------------------------Ideal_DU_postCCP-------------------------------
   433 // If not converting int->oop, throw away cast after constant propagation
   433 // If not converting int->oop, throw away cast after constant propagation
   434 Node *CastPPNode::Ideal_DU_postCCP( PhaseCCP *ccp ) {
   434 Node *CastPPNode::Ideal_DU_postCCP( PhaseCCP *ccp ) {
   435   const Type *t = ccp->type(in(1));
   435   const Type *t = ccp->type(in(1));
   436   if (!t->isa_oop_ptr() || in(1)->is_DecodeN()) {
   436   if (!t->isa_oop_ptr() || (in(1)->is_DecodeN() && Universe::narrow_oop_use_implicit_null_checks())) {
   437     return NULL; // do not transform raw pointers or narrow oops
   437     return NULL; // do not transform raw pointers or narrow oops
   438   }
   438   }
   439   return ConstraintCastNode::Ideal_DU_postCCP(ccp);
   439   return ConstraintCastNode::Ideal_DU_postCCP(ccp);
   440 }
   440 }
   441 
   441