8020750: Node::get_int: guarantee(t != NULL) failed: must be con
Reviewed-by: kvn, roland
--- a/hotspot/src/share/vm/opto/ifnode.cpp Wed Oct 09 05:03:34 2013 -0700
+++ b/hotspot/src/share/vm/opto/ifnode.cpp Wed Oct 09 11:05:17 2013 -0700
@@ -689,6 +689,7 @@
ctrl->in(0)->in(1)->is_Bool() &&
ctrl->in(0)->in(1)->in(1)->Opcode() == Op_CmpI &&
ctrl->in(0)->in(1)->in(1)->in(2)->is_Con() &&
+ ctrl->in(0)->in(1)->in(1)->in(2) != phase->C->top() &&
ctrl->in(0)->in(1)->in(1)->in(1) == n) {
IfNode* dom_iff = ctrl->in(0)->as_If();
Node* otherproj = dom_iff->proj_out(!ctrl->as_Proj()->_con);