Mercurial > hg > truffle
comparison src/share/vm/opto/connode.cpp @ 1575:3657cb01ffc5
6954029: Improve implicit null check generation with compressed oops
Summary: Hoist DecodeN instruction above null check
Reviewed-by: never, twisti
author | kvn |
---|---|
date | Wed, 02 Jun 2010 09:49:32 -0700 |
parents | ddd6f1182ae3 |
children | e9ff18c4ace7 |
comparison
equal
deleted
inserted
replaced
1574:1eb493f33423 | 1575:3657cb01ffc5 |
---|---|
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 |