aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-03-31 23:12:36 -0700
committerArthur Eubanks <aeubanks@google.com>2021-04-10 22:38:44 -0700
commit6210261ecb21c84c9a440a76c0ccbc8ad211bed3 (patch)
tree04e02f2cea7a47bd4c78f831a148360e5e57aad0 /llvm/lib/CodeGen/TargetPassConfig.cpp
parent82fbc5d45b0c2fc9050d1d5e335e35afb4ab2611 (diff)
downloadllvm-6210261ecb21c84c9a440a76c0ccbc8ad211bed3.zip
llvm-6210261ecb21c84c9a440a76c0ccbc8ad211bed3.tar.gz
llvm-6210261ecb21c84c9a440a76c0ccbc8ad211bed3.tar.bz2
Remove "Rewrite Symbols" from codegen pipeline
It breaks up the function pass manager in the codegen pipeline. With empty parameters, it looks at the -mllvm flag -rewrite-map-file. This is likely not in use. Add a check that we only have one function pass manager in the codegen pipeline. This required reverting commit 9583a3f2625818b78c0cf6d473cdedb9f23ad82c: "[AsmPrinter] Delete dead takeDeletedSymbsForFunction()". This was not NFC as initially thought. By coalescing two function psas managers, this exposed the reverted code as necessary. addr-label.ll was crashing due to an emitted blockaddress's block being removed but the label not emitted. Some tests relied on the fact that we had a module pass somewhere in the codegen pipeline. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D99707
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetPassConfig.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 6e80235..51454aa 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -924,7 +924,6 @@ void TargetPassConfig::addPassesToHandleExceptions() {
void TargetPassConfig::addCodeGenPrepare() {
if (getOptLevel() != CodeGenOpt::None && !DisableCGP)
addPass(createCodeGenPreparePass());
- addPass(createRewriteSymbolsPass());
}
/// Add common passes that perform LLVM IR to IR transforms in preparation for