We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://alive2.llvm.org/ce/z/jRfVLr
this function:
define i8 @f(i8 %0, i8 %1) { %3 = icmp slt i8 %1, 0 %4 = shl i8 1, %0 %5 = srem i8 1, %4 %6 = add i8 %5, %4 %7 = select i1 %3, i8 %6, i8 %5 ret i8 %7 }
is getting mis-optimized to:
define i8 @f(i8 %0, i8 %1) { %3 = icmp ne i8 %0, 0 %4 = zext i1 %3 to i8 ret i8 %4 }
here I'll just give Alive's work:
Example: i8 %#0 = #x00 (0) i8 %#1 = #xff (255, -1) Source: i1 %#3 = #x1 (1) i8 %#4 = #x01 (1) i8 %#5 = #x00 (0) i8 %#6 = #x01 (1) i8 %#7 = #x01 (1) Target: i1 %#3 = #x0 (0) i8 %#4 = #x00 (0) Source value: #x01 (1) Target value: #x00 (0)
cc @nunoplopes @Hatsunespica
The text was updated successfully, but these errors were encountered:
foldSelectWithSRem
[InstCombine] Fix unexpected overwriting in foldSelectWithSRem (#8…
6309440
…9539) Fixes #89516
[InstCombine] Fix unexpected overwriting in foldSelectWithSRem (ll…
6aa164f
…vm#89539) Fixes llvm#89516 (cherry picked from commit 6309440)
e7c816b
dtcxzyw
Successfully merging a pull request may close this issue.
https://alive2.llvm.org/ce/z/jRfVLr
this function:
is getting mis-optimized to:
here I'll just give Alive's work:
cc @nunoplopes @Hatsunespica
The text was updated successfully, but these errors were encountered: