[UnreachableMachineBlockElim] Enable machine verification after this pass
authorJay Foad <jay.foad@amd.com>
Wed, 29 Sep 2021 11:57:03 +0000 (12:57 +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/D110697

llvm/lib/CodeGen/TargetPassConfig.cpp

index a2118de..a6cdd83 100644 (file)
@@ -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.