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

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 : [mq]: branch.freq.4

*** 58,63 **** --- 58,85 ---- uint Opaque2Node::hash() const { return NO_HASH; } uint Opaque2Node::cmp( const Node &n ) const { return (&n == this); // Always fail except on self } + //============================================================================= + uint ProfileBooleanNode::hash() const { return NO_HASH; } + uint ProfileBooleanNode::cmp( const Node &n ) const { + return (&n == this); + } + + Node *ProfileBooleanNode::Ideal(PhaseGVN *phase, bool can_reshape) { + if (can_reshape && _delay_removal) { + _delay_removal = false; + return this; + } else { + return NULL; + } + } + + Node *ProfileBooleanNode::Identity( PhaseTransform *phase ) { + if (_delay_removal) { + return this; + } else { + return in(1); + } + }
src/share/vm/opto/opaquenode.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File