diff options
author | Arthur Eubanks <aeubanks@google.com> | 2023-03-13 12:32:24 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2023-04-12 20:34:09 -0700 |
commit | 4bf9ca5eec24a4379fc7021c0aa1e810e32c50a6 (patch) | |
tree | e4fafdeb36a9a77ae108949516a1b78546e0129c /llvm/lib | |
parent | 5fd9d801350d9232098d073ea04fd64db3cf8e1e (diff) | |
download | llvm-4bf9ca5eec24a4379fc7021c0aa1e810e32c50a6.zip llvm-4bf9ca5eec24a4379fc7021c0aa1e810e32c50a6.tar.gz llvm-4bf9ca5eec24a4379fc7021c0aa1e810e32c50a6.tar.bz2 |
[Pipeline] Remove Annotation2Metadata pass in post-link pipelines
The pre-link pipeline already ran the pass and it only needs to be run once.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D145978
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Passes/PassBuilderPipelines.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp index fe6d0ba..f06179d 100644 --- a/llvm/lib/Passes/PassBuilderPipelines.cpp +++ b/llvm/lib/Passes/PassBuilderPipelines.cpp @@ -1500,9 +1500,6 @@ ModulePassManager PassBuilder::buildThinLTODefaultPipeline( OptimizationLevel Level, const ModuleSummaryIndex *ImportSummary) { ModulePassManager MPM; - // Convert @llvm.global.annotations to !annotation metadata. - MPM.addPass(Annotation2MetadataPass()); - if (ImportSummary) { // These passes import type identifier resolutions for whole-program // devirtualization and CFI. They must run early because other passes may @@ -1564,9 +1561,6 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level, ModuleSummaryIndex *ExportSummary) { ModulePassManager MPM; - // Convert @llvm.global.annotations to !annotation metadata. - MPM.addPass(Annotation2MetadataPass()); - for (auto &C : FullLinkTimeOptimizationEarlyEPCallbacks) C(MPM, Level); |