[TwoAddressInstruction] Enable machine verification after this pass

Differential Revision: https://reviews.llvm.org/D111007
This commit is contained in:
Jay Foad 2021-10-01 17:31:21 +01:00
parent 3ff0a5747d
commit 27c57e791a
1 changed files with 2 additions and 2 deletions

View File

@ -1418,7 +1418,7 @@ bool TargetPassConfig::usingDefaultRegAlloc() const {
/// register allocation. No coalescing or scheduling.
void TargetPassConfig::addFastRegAlloc() {
addPass(&PHIEliminationID);
addPass(&TwoAddressInstructionPassID, false);
addPass(&TwoAddressInstructionPassID);
addRegAssignAndRewriteFast();
}
@ -1452,7 +1452,7 @@ void TargetPassConfig::addOptimizedRegAlloc() {
if (EarlyLiveIntervals)
addPass(&LiveIntervalsID);
addPass(&TwoAddressInstructionPassID, false);
addPass(&TwoAddressInstructionPassID);
addPass(&RegisterCoalescerID);
// The machine scheduler may accidentally create disconnected components