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://godbolt.org/z/aa5778bEf
define i8 @add-shl-sdiv-scalar0(i8 %x) { %sd = sdiv i8 %x, -4 %sl = shl i8 %sd, 2 %rz = add i8 %sl, %x ret i8 %rz } define i8 @add-shl-sdiv-scalar1(i8 %x) { %sd = sdiv i8 %x, -4 %sl = shl i8 %sd, 2 %rz = add i8 %x, %sl ret i8 %rz }
Output:
define i8 @add-shl-sdiv-scalar0(i8 %x) { %rz = srem i8 %x, 4 ret i8 %rz } define i8 @add-shl-sdiv-scalar1(i8 %x) { %sd = sdiv i8 %x, -4 %sl = shl i8 %sd, 2 %rz = add i8 %x, %sl ret i8 %rz }
The text was updated successfully, but these errors were encountered:
((X s/ C1) << C2) + X
[InstCombine] Handle commuted pattern for ((X s/ C1) << C2) + X (#1…
69ba565
…21737) Closes #121700
[InstCombine] Handle commuted pattern for ((X s/ C1) << C2) + X (ll…
c316730
…vm#121737) Closes llvm#121700
dtcxzyw
Successfully merging a pull request may close this issue.
https://godbolt.org/z/aa5778bEf
Output:
The text was updated successfully, but these errors were encountered: