summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2021-09-29 13:09:22 +0100
committerJay Foad <jay.foad@amd.com>2021-10-01 18:15:57 +0100
commit04787239c930c386105d341a172b1d419c42fa9c (patch)
treeeff975a1eda61a4c215a1af2f5b11a3d2299cee2 /llvm/lib/CodeGen/TargetPassConfig.cpp
parent08d41f75d9856718776d9c035b2eba666b0688ee (diff)
[LiveVariables] Skip verification of kills inside bundles
LiveVariables does not examine the contents of bundles, so MachineVerifier should not expect it to know about kill flags on operands of instructions inside a bundle. With this fix we can enable machine verification after running the LiveVariables analysis. Doing this does not show any problems in check-llvm in an LLVM_ENABLE_EXPENSIVE_CHECKS build. Differential Revision: https://reviews.llvm.org/D110700
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetPassConfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index a6cdd83f6c5f..09d66a89e36c 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -1442,7 +1442,7 @@ void TargetPassConfig::addOptimizedRegAlloc() {
// Explicit addition of UnreachableMachineBlockElim allows stopping before or
// after it with -stop-before/-stop-after.
addPass(&UnreachableMachineBlockElimID);
- addPass(&LiveVariablesID, false);
+ addPass(&LiveVariablesID);
// Edge splitting is smarter with machine loop info.
addPass(&MachineLoopInfoID, false);