-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
[SimplifyCFG] transform undef
to unreachable
#85510
Comments
undef
to unreachable
Specifically, in your example, if the return value isn't labelled I guess what you want is to refine
A more general question is how to make the refinement best, but it's hard(or even undecidable). I wonder where this example comes from, and are there more specific scenarios? That would be helpful for this issue. Anyway, I think |
See https://llvm.godbolt.org/z/zzv3jxYdc. Yes, I was simply hoping that the
I apologize, I got some of my initial debugging results mixed up. You're right, the code you mentioned above is relevant. |
I tried the following code:
src
can be transformed into a return statement becausebb
throughbb5
is undefined behavior.Perhaps we will be blocked by #78578 if we fix this issue.
alive2: https://alive2.llvm.org/ce/z/Sz6r-e
godbolt: https://llvm.godbolt.org/z/sjrT7Ms6e
The text was updated successfully, but these errors were encountered: