-
Notifications
You must be signed in to change notification settings - Fork 13k
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
instcombine + dagcombine miscompilation #1386
Comments
assigned to @lattner |
This is definitely bug in InstCombine. opt -instcombine produces bad output |
Hmm, no cast instructions. What does instcombine produce? Can you attach it please? Reid. |
Before:
After:
|
Fixed. Testcase here: InstCombine/2006-11-27-XorBug.ll Patch here: -Chris |
Attached testcase is still broken. |
In fact, I haven't found any output difference before and after patch. |
I get: return: ; preds = %entry You don't get this? |
This same bug also exists in the dag combiner. Fixed like this: -Chris |
Fixes bugs relating to array expressions on CHARACTER elements. Fixes a
Extended Description
Consider the attached .ll file.
It will ask a number as input. Input "32".
Correct answer is "41". It can be obtained via cbackend. Both llc and lli
generate code, which produces "186".
The text was updated successfully, but these errors were encountered: