Skip to content

Commit

Permalink
[MachineLoopInfo] Enable machine verification after this pass
Browse files Browse the repository at this point in the history
Enabling this does not show any problems in check-llvm in an
LLVM_ENABLE_EXPENSIVE_CHECKS build.

Differential Revision: https://reviews.llvm.org/D110703
  • Loading branch information
jayfoad committed Oct 1, 2021
1 parent 0478723 commit 31c92d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/TargetPassConfig.cpp
Expand Up @@ -1445,7 +1445,7 @@ void TargetPassConfig::addOptimizedRegAlloc() {
addPass(&LiveVariablesID);

// Edge splitting is smarter with machine loop info.
addPass(&MachineLoopInfoID, false);
addPass(&MachineLoopInfoID);
addPass(&PHIEliminationID, false);

// Eventually, we want to run LiveIntervals before PHI elimination.
Expand Down

0 comments on commit 31c92d5

Please sign in to comment.