-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
AMDGPU GlobalISel fails on select of G_UBSANTRAP #131740
Comments
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below. |
@llvm/issue-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm)
https://godbolt.org/z/6PzeExK4f
We already handle G_TRAP and G_DEBUGTRAP. ubsan isn't particularly special and should be able to follow |
@llvm/issue-subscribers-good-first-issue Author: Matt Arsenault (arsenm)
https://godbolt.org/z/6PzeExK4f
We already handle G_TRAP and G_DEBUGTRAP. ubsan isn't particularly special and should be able to follow |
@arsenm hey can you provide a bit more info on this issue and assign me I would like to work on it |
The IR has 3 different types of traps. ubsantrap by default in the DAG is just replaced with trap:
It's probably just a matter of adding G_UBSAN to one of these lists unconditionally lowering:
and adding the relevant tests. If the underlying support code in LegalizerHelper is missing, it needs a new case to perform the G_UBSANTRAP -> G_TRAP substitution |
https://godbolt.org/z/6PzeExK4f
We already handle G_TRAP and G_DEBUGTRAP. ubsan isn't particularly special and should be able to follow
The text was updated successfully, but these errors were encountered: