https://bugs.llvm.org/show_bug.cgi?id=49803

            Bug ID: 49803
           Summary: `X86 FP Stackifier` pass fails with "Stack empty??"
                    when `llvm.experimental.stackmap` is present
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Created attachment 24712
  --> https://bugs.llvm.org/attachment.cgi?id=24712&action=edit
Minimized reproducer

The following function makes the `X86 FP Stackifier` pass fail with the "Stack
empty??" message. The issue is reproducible on LLVM 11.1 and `main`.

```
define void @fp_func(x86_fp80 %fp_arg) #0 {
entry:
  call void (i64, i32, ...) @llvm.experimental.stackmap(i64 0, i32 0)
  call void (x86_fp80) @fp_extern_func(x86_fp80 %fp_arg)
  ret void
}
```

The issue can be reproduced with the (minimized) bitcode file attached using
the following command:
`llc -O1 fp_test.bc`

-- 
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

Reply via email to