diff options
author | 2016-05-04 12:59:07 +0000 | |
---|---|---|
committer | 2016-05-04 12:59:08 +0000 | |
commit | b8154f8f36e2811b2524929a7ef31cb4edab44b8 (patch) | |
tree | b93d3da8e227888173f6605e17099a76ba56374e /compiler/optimizing | |
parent | 43aa3318f9ada1d2f3b99aa6a659685a99fc9c45 (diff) | |
parent | 05b3fa02ed8ef62841a92cd96526ba3a06bf1f63 (diff) |
Merge "Do not look at dead phis during SsaRedundantPhiElimination."
Diffstat (limited to 'compiler/optimizing')
-rw-r--r-- | compiler/optimizing/ssa_phi_elimination.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/optimizing/ssa_phi_elimination.cc b/compiler/optimizing/ssa_phi_elimination.cc index aeb31094d4..0978ae17f8 100644 --- a/compiler/optimizing/ssa_phi_elimination.cc +++ b/compiler/optimizing/ssa_phi_elimination.cc @@ -139,8 +139,9 @@ void SsaRedundantPhiElimination::Run() { continue; } - if (phi->InputCount() == 0) { - DCHECK(phi->IsDead()); + // If the phi is dead, we know we won't revive it and it will be removed, + // so don't process it. + if (phi->IsDead()) { continue; } |