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

*** 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 ProfileBranchNode::hash() const { return NO_HASH; } + uint ProfileBranchNode::cmp( const Node &n ) const { + return (&n == this); + } + + Node *ProfileBranchNode::Ideal(PhaseGVN *phase, bool can_reshape) { + if (can_reshape && _delay_removal) { + _delay_removal = false; + return this; + } else { + return NULL; + } + } + + Node *ProfileBranchNode::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