435 |
435 |
436 //------------------------------Ideal_DU_postCCP------------------------------- |
436 //------------------------------Ideal_DU_postCCP------------------------------- |
437 // If not converting int->oop, throw away cast after constant propagation |
437 // If not converting int->oop, throw away cast after constant propagation |
438 Node *CastPPNode::Ideal_DU_postCCP( PhaseCCP *ccp ) { |
438 Node *CastPPNode::Ideal_DU_postCCP( PhaseCCP *ccp ) { |
439 const Type *t = ccp->type(in(1)); |
439 const Type *t = ccp->type(in(1)); |
440 if (!t->isa_oop_ptr() || (in(1)->is_DecodeN() && Universe::narrow_oop_use_implicit_null_checks())) { |
440 if (!t->isa_oop_ptr() || (in(1)->is_DecodeN() && Matcher::gen_narrow_oop_implicit_null_checks())) { |
441 return NULL; // do not transform raw pointers or narrow oops |
441 return NULL; // do not transform raw pointers or narrow oops |
442 } |
442 } |
443 return ConstraintCastNode::Ideal_DU_postCCP(ccp); |
443 return ConstraintCastNode::Ideal_DU_postCCP(ccp); |
444 } |
444 } |
445 |
445 |