[llvm] [AArch64][GlobalISel] Do not create LIFETIME instructions in functions. (PR #115669)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 11 12:03:33 PST 2024
================
@@ -2166,7 +2166,8 @@ bool IRTranslator::translateKnownIntrinsic(const CallInst &CI, Intrinsic::ID ID,
case Intrinsic::lifetime_start:
case Intrinsic::lifetime_end: {
// No stack colouring in O0, discard region information.
- if (MF->getTarget().getOptLevel() == CodeGenOptLevel::None)
+ if (MF->getTarget().getOptLevel() == CodeGenOptLevel::None ||
+ MF->getFunction().hasOptNone())
----------------
arsenm wrote:
The DAG doesn't check this, fix both together?
https://github.com/llvm/llvm-project/pull/115669
More information about the llvm-commits
mailing list