< prev index next >

src/share/vm/opto/castnode.hpp

Print this page
rev 12700 : 8176506: C2: loop unswitching and unsafe accesses cause crash
Reviewed-by:

@@ -114,11 +114,12 @@
 
   virtual Node* Identity(PhaseGVN* phase);
   virtual const Type* Value(PhaseGVN* phase) const;
   virtual int   Opcode() const;
   virtual uint  ideal_reg() const { return Op_RegP; }
-};
+  bool depends_only_on_test() const { return !type()->isa_rawptr() && ConstraintCastNode::depends_only_on_test(); }
+ };
 
 
 //------------------------------CastX2PNode-------------------------------------
 // convert a machine-pointer-sized integer to a raw pointer
 class CastX2PNode : public Node {
< prev index next >