[llvm] 08d41f7 - [UnreachableMachineBlockElim] Enable machine verification after this pass

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


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

URL: https://github.com/llvm/llvm-project/commit/08d41f75d9856718776d9c035b2eba666b0688ee
DIFF: https://github.com/llvm/llvm-project/commit/08d41f75d9856718776d9c035b2eba666b0688ee.diff

LOG: [UnreachableMachineBlockElim] 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/D110697

Added: 
    

Modified: 
    llvm/lib/CodeGen/TargetPassConfig.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index a2118de26ae5..a6cdd83f6c5f 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -1441,7 +1441,7 @@ void TargetPassConfig::addOptimizedRegAlloc() {
   // When LiveVariables is removed this has to be removed/moved either.
   // Explicit addition of UnreachableMachineBlockElim allows stopping before or
   // after it with -stop-before/-stop-after.
-  addPass(&UnreachableMachineBlockElimID, false);
+  addPass(&UnreachableMachineBlockElimID);
   addPass(&LiveVariablesID, false);
 
   // Edge splitting is smarter with machine loop info.


        


More information about the llvm-commits mailing list