src/share/vm/opto/subnode.cpp

changeset 3407
35acf8f0a2e4
parent 2940
33e2b8f1d466
child 3787
6759698e3140
equal deleted inserted replaced
3406:e9a5e0a812c8 3407:35acf8f0a2e4
89 const Type* t2 = (in2 == this) ? Type::TOP : phase->type(in2); 89 const Type* t2 = (in2 == this) ? Type::TOP : phase->type(in2);
90 if( t2 == Type::TOP ) return Type::TOP; 90 if( t2 == Type::TOP ) return Type::TOP;
91 91
92 // Not correct for SubFnode and AddFNode (must check for infinity) 92 // Not correct for SubFnode and AddFNode (must check for infinity)
93 // Equal? Subtract is zero 93 // Equal? Subtract is zero
94 if (phase->eqv_uncast(in1, in2)) return add_id(); 94 if (in1->eqv_uncast(in2)) return add_id();
95 95
96 // Either input is BOTTOM ==> the result is the local BOTTOM 96 // Either input is BOTTOM ==> the result is the local BOTTOM
97 if( t1 == Type::BOTTOM || t2 == Type::BOTTOM ) 97 if( t1 == Type::BOTTOM || t2 == Type::BOTTOM )
98 return bottom_type(); 98 return bottom_type();
99 99

mercurial