src/share/vm/opto/opaquenode.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/opto

src/share/vm/opto/opaquenode.cpp

Print this page
rev 7652 : 8063137: Never-taken branches should be pruned when GWT LambdaForms are shared
Reviewed-by: ?
rev 7653 : [mq]: branch.freq.1
rev 7656 : imported patch branch.freq.4
rev 7657 : imported patch branch.freq.5


  63 //=============================================================================
  64 
  65 uint ProfileBooleanNode::hash() const { return NO_HASH; }
  66 uint ProfileBooleanNode::cmp( const Node &n ) const {
  67   return (&n == this);
  68 }
  69 
  70 Node *ProfileBooleanNode::Ideal(PhaseGVN *phase, bool can_reshape) {
  71   if (can_reshape && _delay_removal) {
  72     _delay_removal = false;
  73     return this;
  74   } else {
  75     return NULL;
  76   }
  77 }
  78 
  79 Node *ProfileBooleanNode::Identity( PhaseTransform *phase ) {
  80   if (_delay_removal) {
  81     return this;
  82   } else {

  83     return in(1);
  84   }
  85 }


  63 //=============================================================================
  64 
  65 uint ProfileBooleanNode::hash() const { return NO_HASH; }
  66 uint ProfileBooleanNode::cmp( const Node &n ) const {
  67   return (&n == this);
  68 }
  69 
  70 Node *ProfileBooleanNode::Ideal(PhaseGVN *phase, bool can_reshape) {
  71   if (can_reshape && _delay_removal) {
  72     _delay_removal = false;
  73     return this;
  74   } else {
  75     return NULL;
  76   }
  77 }
  78 
  79 Node *ProfileBooleanNode::Identity( PhaseTransform *phase ) {
  80   if (_delay_removal) {
  81     return this;
  82   } else {
  83     assert(_consumed, "profile should be consumed before elimination");
  84     return in(1);
  85   }
  86 }
src/share/vm/opto/opaquenode.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File