[PATCH] D143624: Inlining: Run the legacy AlwaysInliner before the regular inliner.

Amara Emerson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 9 21:53:54 PST 2023


aemerson added inline comments.


================
Comment at: llvm/lib/Passes/PassBuilderPipelines.cpp:1082
 
+  MPM.addPass(AlwaysInlinerPass(/*InsertLifetimeIntrinsics=*/false));
+
----------------
aeubanks wrote:
> aeubanks wrote:
> > I think we want to insert lifetime intrinsics when optimizing
> this will never be called with `Level == OptimizationLevel::O0`, `true` is good enough
Ok.


================
Comment at: llvm/test/Transforms/Inline/always-inline-newpm.ll:1
+; RUN: opt --Os -pass-remarks=inline -S < %s 2>&1 | FileCheck %s
+target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
----------------
aeubanks wrote:
> a better file name is `always-inline-phase-ordering`, legacy PM is deprecated anyway
> 
> was this file exploding before?
Ok I'll rename, this one is demonstrating different/smaller code size with this change.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143624/new/

https://reviews.llvm.org/D143624



More information about the cfe-commits mailing list