db063ea6d0
It might be too late to remove redundant phis in EliminateDeadPhis because EliminateDeadPhis runs after OptimizeBranches, and OptimizeBranches may be able to eliminate more branches if redundant phis are cleaned up. This change moves elimination of redundant phis into canonicalization pass which is repeated more frequently. Fixes recent regressions on several micro-benchmarks after https://dart-review.googlesource.com/c/sdk/+/139314 Change-Id: Ib0148564615dbd0adb88e93b938ca9f3f59cabfd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148792 Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>