< prev index next >

src/hotspot/share/opto/subnode.cpp

Print this page

        

*** 834,844 **** // Simplify an CmpP (compare 2 pointers) node, based on local information. // If both inputs are constants, compare them. const Type *CmpPNode::sub( const Type *t1, const Type *t2 ) const { if (t1->isa_valuetype() || t2->isa_valuetype() || ((t1->is_valuetypeptr() || t2->is_valuetypeptr()) && ! (!t1->is_ptr()->maybe_null() || !t2->is_ptr()->maybe_null()))) { // One operand is a value type and one operand is never null, fold to constant false return TypeInt::CC_GT; } const TypePtr *r0 = t1->is_ptr(); // Handy access --- 834,844 ---- // Simplify an CmpP (compare 2 pointers) node, based on local information. // If both inputs are constants, compare them. const Type *CmpPNode::sub( const Type *t1, const Type *t2 ) const { if (t1->isa_valuetype() || t2->isa_valuetype() || ((t1->is_valuetypeptr() || t2->is_valuetypeptr()) && ! (!t1->maybe_null() || !t2->maybe_null()))) { // One operand is a value type and one operand is never null, fold to constant false return TypeInt::CC_GT; } const TypePtr *r0 = t1->is_ptr(); // Handy access
< prev index next >