aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Passes/PassBuilderPipelines.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-04-21 10:17:03 +0200
committerNikita Popov <npopov@redhat.com>2023-04-24 09:58:06 +0200
commite7e4c7632075fef21bc8f90ad76dc68680e3bac8 (patch)
treee6ed331ed884398859ceabf23c5fa1395bf40548 /llvm/lib/Passes/PassBuilderPipelines.cpp
parentd42ba4c2a65ad782b870a26ca86c45c30ed30fa5 (diff)
downloadllvm-e7e4c7632075fef21bc8f90ad76dc68680e3bac8.zip
llvm-e7e4c7632075fef21bc8f90ad76dc68680e3bac8.tar.gz
llvm-e7e4c7632075fef21bc8f90ad76dc68680e3bac8.tar.bz2
[Pipelines] Don't run ForceFunctionAttrs post-link
This is effectively a debugging pass to adjust function attributes. I don't think it makes sense to run it in the post-link pipeline. Differential Revision: https://reviews.llvm.org/D148904
Diffstat (limited to 'llvm/lib/Passes/PassBuilderPipelines.cpp')
-rw-r--r--llvm/lib/Passes/PassBuilderPipelines.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index 4fa7326..4407ad0 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -1557,9 +1557,6 @@ ModulePassManager PassBuilder::buildThinLTODefaultPipeline(
return MPM;
}
- // Force any function attributes we want the rest of the pipeline to observe.
- MPM.addPass(ForceFunctionAttrsPass());
-
// Add the core simplification pipeline.
MPM.addPass(buildModuleSimplificationPipeline(
Level, ThinOrFullLTOPhase::ThinLTOPostLink));
@@ -1626,9 +1623,6 @@ PassBuilder::buildLTODefaultPipeline(OptimizationLevel Level,
// whole-program devirtualization and bitset lowering.
MPM.addPass(GlobalDCEPass());
- // Force any function attributes we want the rest of the pipeline to observe.
- MPM.addPass(ForceFunctionAttrsPass());
-
// Do basic inference of function attributes from known properties of system
// libraries and other oracles.
MPM.addPass(InferFunctionAttrsPass());