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 }
|