https://bugs.llvm.org/show_bug.cgi?id=41627
Bug ID: 41627
Summary: SDAG tries to legalize token and aborts
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
When building some code with the experimental pass manager involving
coroutines, the id/alloc intrinsics were inlined into a function. CodeGen then
tried to legalize the body which aborts on the `token` type.
Reduced test case:
```
; RUN: %llc -mtriple x86_64-unknown-linux-gnu -filetype asm -o - %s |
%FileCheck s
declare token @llvm.coro.id(i32, i8* readnone, i8* nocapture readonly, i8*)
declare i1 @llvm.coro.alloc(token)
define i1 @f(i8* %0) {
%1 = call token @llvm.coro.id(i32 16, i8* %0, i8* null, i8* null)
%2 = call i1 @llvm.coro.alloc(token %1)
ret i1 %2
}
```
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs