Skip to content

Commit 8d4d85d

Browse files
committed
Revert "[Coroutines] Always set the calling convention of generated resuming call from 'llvm.coro.await.suspend.handle' as fast"
This reverts commit 31f1590. It looks like some bots are not happy about the FileChecks
1 parent d7c3713 commit 8d4d85d

File tree

2 files changed

+1
-60
lines changed

2 files changed

+1
-60
lines changed

llvm/lib/Transforms/Coroutines/CoroSplit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ static void lowerAwaitSuspend(IRBuilder<> &Builder, CoroAwaitSuspendInst *CB,
227227
FunctionType *ResumeTy = FunctionType::get(
228228
Type::getVoidTy(Ctx), PointerType::getUnqual(Ctx), false);
229229
auto *ResumeCall = Builder.CreateCall(ResumeTy, ResumeAddr, {NewCall});
230-
ResumeCall->setCallingConv(CallingConv::Fast);
231230

232231
// We can't insert the 'ret' instruction and adjust the cc until the
233232
// function has been split, so remember this for later.
@@ -1089,6 +1088,7 @@ void CoroCloner::create() {
10891088
// Turn symmetric transfers into musttail calls.
10901089
for (CallInst *ResumeCall : Shape.SymmetricTransfers) {
10911090
ResumeCall = cast<CallInst>(VMap[ResumeCall]);
1091+
ResumeCall->setCallingConv(NewF->getCallingConv());
10921092
if (TTI.supportsTailCallFor(ResumeCall)) {
10931093
// FIXME: Could we support symmetric transfer effectively without
10941094
// musttail?

llvm/test/Transforms/Coroutines/coro-await-suspend-handle-in-ramp.ll

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)