diff options
author | Amara Emerson <amara@apple.com> | 2023-02-09 21:56:02 -0800 |
---|---|---|
committer | Amara Emerson <amara@apple.com> | 2023-02-09 21:56:40 -0800 |
commit | 8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1 (patch) | |
tree | 09ecfc8105c0524fb9b9fc3ea87eaac05204fcb9 | |
parent | 5d10753314ed58e1f55d41118c8f082c5fc7b2d7 (diff) | |
download | llvm-8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1.zip llvm-8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1.tar.gz llvm-8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1.tar.bz2 |
Inliner: Address missed review comments for D143624
-rw-r--r-- | llvm/lib/Passes/PassBuilderPipelines.cpp | 3 | ||||
-rw-r--r-- | llvm/test/Transforms/Inline/always-inline-phase-ordering.ll (renamed from llvm/test/Transforms/Inline/always-inline-newpm.ll) | 0 |
2 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)); diff --git a/llvm/test/Transforms/Inline/always-inline-newpm.ll b/llvm/test/Transforms/Inline/always-inline-phase-ordering.ll index e69ca48..e69ca48 100644 --- a/llvm/test/Transforms/Inline/always-inline-newpm.ll +++ b/llvm/test/Transforms/Inline/always-inline-phase-ordering.ll |