提交 0d646956 编写于 作者: T twisti

8020750: Node::get_int: guarantee(t != NULL) failed: must be con

Reviewed-by: kvn, roland
上级 7ea608ab
...@@ -689,6 +689,7 @@ Node* IfNode::fold_compares(PhaseGVN* phase) { ...@@ -689,6 +689,7 @@ Node* IfNode::fold_compares(PhaseGVN* phase) {
ctrl->in(0)->in(1)->is_Bool() && ctrl->in(0)->in(1)->is_Bool() &&
ctrl->in(0)->in(1)->in(1)->Opcode() == Op_CmpI && 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)->is_Con() &&
ctrl->in(0)->in(1)->in(1)->in(2) != phase->C->top() &&
ctrl->in(0)->in(1)->in(1)->in(1) == n) { ctrl->in(0)->in(1)->in(1)->in(1) == n) {
IfNode* dom_iff = ctrl->in(0)->as_If(); IfNode* dom_iff = ctrl->in(0)->as_If();
Node* otherproj = dom_iff->proj_out(!ctrl->as_Proj()->_con); Node* otherproj = dom_iff->proj_out(!ctrl->as_Proj()->_con);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册