[MachineLoopInfo] Enable machine verification after this pass
authorJay Foad <jay.foad@amd.com>
Wed, 29 Sep 2021 12:18:01 +0000 (13:18 +0100)
committerJay Foad <jay.foad@amd.com>
Fri, 1 Oct 2021 17:15:57 +0000 (18:15 +0100)
Enabling this does not show any problems in check-llvm in an
LLVM_ENABLE_EXPENSIVE_CHECKS build.

Differential Revision: https://reviews.llvm.org/D110703

llvm/lib/CodeGen/TargetPassConfig.cpp

index 09d66a8..af98386 100644 (file)
@@ -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.