8233820: Test crashed with assert(phi->operand_count() != 1 || phi->subst() != phi) failed: missed trivial simplification

Verification code needs to skip illegal phi functions.

Reviewed-by: thartmann, vlivanov
This commit is contained in:
Martin Doerr 2019-11-12 16:13:16 +01:00
parent d948bfd584
commit 7c242c709d
2 changed files with 3 additions and 1 deletions

View file

@ -2590,7 +2590,7 @@ void PhiSimplifier::block_do(BlockBegin* b) {
#ifdef ASSERT
for_each_phi_fun(b, phi,
assert(phi->operand_count() != 1 || phi->subst() != phi, "missed trivial simplification");
assert(phi->operand_count() != 1 || phi->subst() != phi || phi->is_illegal(), "missed trivial simplification");
);
ValueStack* state = b->state()->caller_state();