--- a/hotspot/src/share/vm/opto/castnode.hpp Tue Jun 06 17:07:42 2017 +0200
+++ b/hotspot/src/share/vm/opto/castnode.hpp Mon May 29 18:17:49 2017 +0200
@@ -116,7 +116,8 @@
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-------------------------------------