[llvm] 8e33c41 - Inliner: Address missed review comments for D143624

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 22:12:49 PST 2023


Author: Amara Emerson
Date: 2023-02-09T21:56:40-08:00
New Revision: 8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1

URL: https://github.com/llvm/llvm-project/commit/8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1
DIFF: https://github.com/llvm/llvm-project/commit/8e33c41e72ad42e4c27f8cbc3ad2e02b169637a1.diff

LOG: Inliner: Address missed review comments for D143624

Added: 
    llvm/test/Transforms/Inline/always-inline-phase-ordering.ll

Modified: 
    llvm/lib/Passes/PassBuilderPipelines.cpp

Removed: 
    llvm/test/Transforms/Inline/always-inline-newpm.ll


################################################################################
diff  --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index 3c6b4b8cd617..9b96c8095b11 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
similarity index 100%
rename from llvm/test/Transforms/Inline/always-inline-newpm.ll
rename to llvm/test/Transforms/Inline/always-inline-phase-ordering.ll


        


More information about the llvm-commits mailing list