Skip to content

Commit 25b5550

Browse files
committed
Revert "Pass coro.id to coro.begin"
1 parent 3a55d3e commit 25b5550

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

llvm/lib/Transforms/Coroutines/CoroEarly.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,10 @@ void Lowerer::lowerEarlyIntrinsics(Function &F) {
283283
static bool declaresCoroEarlyIntrinsics(const Module &M) {
284284
return coro::declaresIntrinsics(
285285
M, {"llvm.coro.id", "llvm.coro.id.retcon", "llvm.coro.id.retcon.once",
286-
"llvm.coro.id.async", "llvm.coro.begin", "llvm.coro.destroy",
287-
"llvm.coro.done", "llvm.coro.end", "llvm.coro.end.async",
288-
"llvm.coro.noop", "llvm.coro.frame", "llvm.coro.free",
289-
"llvm.coro.promise", "llvm.coro.resume", "llvm.coro.suspend"});
286+
"llvm.coro.id.async", "llvm.coro.destroy", "llvm.coro.done",
287+
"llvm.coro.end", "llvm.coro.end.async", "llvm.coro.noop",
288+
"llvm.coro.frame", "llvm.coro.free", "llvm.coro.promise",
289+
"llvm.coro.resume", "llvm.coro.suspend"});
290290
}
291291

292292
PreservedAnalyses CoroEarlyPass::run(Module &M, ModuleAnalysisManager &) {

llvm/test/Other/time-passes.ll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ end:
8383

8484
}
8585

86-
define void @baz_coro() presplitcoroutine {
87-
%id = call token @llvm.coro.id(i32 16, ptr null, ptr null, ptr null)
88-
%unused = call ptr @llvm.coro.begin(token %id, ptr null)
86+
define void @baz_coro() {
87+
%unused = call ptr @llvm.coro.begin(token none, ptr null)
8988
ret void
9089
}
9190

0 commit comments

Comments
 (0)