[llvm-bugs] [Bug 41627] New: SDAG tries to legalize token and aborts
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Apr 27 12:11:43 PDT 2019
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: unassignedbugs at nondot.org
Reporter: compnerd at compnerd.org
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190427/7c301dbc/attachment.html>
More information about the llvm-bugs
mailing list