[llvm] [Coroutines] Inline the `.noalloc` ramp function marked coro_safe_elide (PR #114004)
Yuxuan Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 11:58:00 PST 2024
================
@@ -92,61 +94,86 @@ static void processCall(CallBase *CB, Function *Caller, Function *NewCallee,
NewCB->removeFnAttr(llvm::Attribute::CoroElideSafe);
CB->replaceAllUsesWith(NewCB);
- CB->eraseFromParent();
+
+ InlineFunctionInfo IFI;
+ InlineResult IR = InlineFunction(*NewCB, IFI);
+ if (IR.isSuccess()) {
+ CB->eraseFromParent();
+ } else {
----------------
yuxuanchen1997 wrote:
Added. Sorry for the delay.
https://github.com/llvm/llvm-project/pull/114004
More information about the llvm-commits
mailing list