[PHIElimination] Enable machine verification after this pass

Differential Revision: https://reviews.llvm.org/D111006
This commit is contained in:
Jay Foad 2021-10-03 09:10:29 +01:00
parent 3c9dfba189
commit 3ff0a5747d
1 changed files with 2 additions and 2 deletions

View File

@ -1417,7 +1417,7 @@ bool TargetPassConfig::usingDefaultRegAlloc() const {
/// Add the minimum set of target-independent passes that are required for
/// register allocation. No coalescing or scheduling.
void TargetPassConfig::addFastRegAlloc() {
addPass(&PHIEliminationID, false);
addPass(&PHIEliminationID);
addPass(&TwoAddressInstructionPassID, false);
addRegAssignAndRewriteFast();
@ -1446,7 +1446,7 @@ void TargetPassConfig::addOptimizedRegAlloc() {
// Edge splitting is smarter with machine loop info.
addPass(&MachineLoopInfoID);
addPass(&PHIEliminationID, false);
addPass(&PHIEliminationID);
// Eventually, we want to run LiveIntervals before PHI elimination.
if (EarlyLiveIntervals)