Closed jhuber6 closed 1 month ago
@llvm/issue-subscribers-backend-amdgpu
This is kind of a pass manager bug. We rely on CodeGenInSCCOrder for this, but if the function is never called it's not in the SCC. Last I looked at this I found the magic placement for a Module barrier pass that makes it work but it's not an ideal solution
We really need to fix this.
I believe #102913 should fix this
The following LLVM-IR will crash the
llc
backend when run atO0
. See also the godbolt link.Invoking
llc
with-O0
gives us the following failures.This is apparently a regression since the LLVM 16.0.0 release as changing the
llc
on godbolt tollc 16.0.0
or older does not reproduce the issue.