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

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 16:49:21 PST 2023


aeubanks added inline comments.


================
Comment at: llvm/lib/Passes/PassBuilderPipelines.cpp:1082
 
+  MPM.addPass(AlwaysInlinerPass(/*InsertLifetimeIntrinsics=*/false));
+
----------------
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


================
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"
----------------
a better file name is `always-inline-phase-ordering`, legacy PM is deprecated anyway

was this file exploding before?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143624



More information about the llvm-commits mailing list