提交 52c5bbe7 编写于 作者: K kvn

7045506: assert(!can_reshape || !new_phi) failed: for igvn new phi should be hooked

Summary: Replace the assert in PhiNode::Ideal with check to avoid transformation of new phi.
Reviewed-by: never
上级 644089fd
......@@ -1556,7 +1556,9 @@ Node *PhiNode::Ideal(PhaseGVN *phase, bool can_reshape) {
Node *top = phase->C->top();
bool new_phi = (outcnt() == 0); // transforming new Phi
assert(!can_reshape || !new_phi, "for igvn new phi should be hooked");
// No change for igvn if new phi is not hooked
if (new_phi && can_reshape)
return NULL;
// The are 2 situations when only one valid phi's input is left
// (in addition to Region input).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册