From 31c92d515dd21c49a2b3bcedd991fffb3b6dfd55 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Wed, 29 Sep 2021 13:18:01 +0100 Subject: [PATCH] [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 --- llvm/lib/CodeGen/TargetPassConfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.34.1