[llvm] 31c92d5 - [MachineLoopInfo] Enable machine verification after this pass

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 1 10:16:17 PDT 2021


Author: Jay Foad
Date: 2021-10-01T18:15:57+01:00
New Revision: 31c92d515dd21c49a2b3bcedd991fffb3b6dfd55

URL: https://github.com/llvm/llvm-project/commit/31c92d515dd21c49a2b3bcedd991fffb3b6dfd55
DIFF: https://github.com/llvm/llvm-project/commit/31c92d515dd21c49a2b3bcedd991fffb3b6dfd55.diff

LOG: [MachineLoopInfo] Enable machine verification after this pass

Enabling this does not show any problems in check-llvm in an
LLVM_ENABLE_EXPENSIVE_CHECKS build.

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

Added: 
    

Modified: 
    llvm/lib/CodeGen/TargetPassConfig.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 09d66a89e36c..af98386cb7e0 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -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.


        


More information about the llvm-commits mailing list