-
Notifications
You must be signed in to change notification settings - Fork 12.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
llc crash when exec 'llc -mtriple=sparcel' #89569
Comments
The error is:
So, this is simply not something supported by old Sparc backend. |
@llvm/issue-subscribers-bug Author: None (cpython-java)
# description
when i use 'llc' to translate an IR, crash happened. I don't know whether it's a bug of 'llc' and want to be sure about it.
thank you for your help! bug ir
cmd
crash info |
So it's a problem about align. But why the following code has no problem??? Thank you for your help!!!!!
the difference between two IR is only whether instruction 'br' exists. |
First one is a dynamic alloca requiring stack realignment. |
If the syntax is not supported, should the llc alert the user with an error instead of crashing? |
From a quick look it seems that this also affects all the other 32-bit targets... |
SPARC ABI doesn't use stack realignment, so let LLVM know about it in `SparcFrameLowering`. This has the side effect of making all overaligned allocations go through `LowerDYNAMIC_STACKALLOC`, so implement the missing logic there too for overaligned allocations. This makes the SPARC backend not crash on overaligned `alloca`s and fix #89569.
SPARC ABI doesn't use stack realignment, so let LLVM know about it in `SparcFrameLowering`. This has the side effect of making all overaligned allocations go through `LowerDYNAMIC_STACKALLOC`, so implement the missing logic there too for overaligned allocations. This makes the SPARC backend not crash on overaligned `alloca`s and fix llvm#89569.
description
when i use 'llc' to translate an IR, crash happened. I don't know whether it's a bug of 'llc' and want to be sure about it.
thank you for your help!
bug ir
cmd
llc -mtriple=sparcel test.ll
crash info
https://godbolt.org/z/hEafj9887
The text was updated successfully, but these errors were encountered: