aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorAmara Emerson <amara@apple.com>2023-02-09 21:56:02 -0800
committerAmara Emerson <amara@apple.com>2023-02-09 21:56:40 -0800
commit8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1 (patch)
tree09ecfc8105c0524fb9b9fc3ea87eaac05204fcb9 /llvm/lib
parent5d10753314ed58e1f55d41118c8f082c5fc7b2d7 (diff)
downloadllvm-8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1.zip
llvm-8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1.tar.gz
llvm-8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1.tar.bz2
Inliner: Address missed review comments for D143624
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Passes/PassBuilderPipelines.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index 3c6b4b8..9b96c80 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -1079,8 +1079,7 @@ PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level,
if (EnableSyntheticCounts && !PGOOpt)
MPM.addPass(SyntheticCountsPropagation());
- MPM.addPass(AlwaysInlinerPass(
- /*InsertLifetimeIntrinsics=*/Level != OptimizationLevel::O0));
+ MPM.addPass(AlwaysInlinerPass(/*InsertLifetimeIntrinsics=*/true));
if (EnableModuleInliner)
MPM.addPass(buildModuleInlinerPipeline(Level, Phase));