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
!unpredictable
When instcombine combines select+add into add+select the !unpredictable metadata is lost on the way.
define i64 @add_select(i1 %cond, i64 %x, i64 %y) { %add = add i64 %x, %y %ret = select i1 %cond, i64 %add, i64 %x, !unpredictable !0 ret i64 %ret } !0 = !{}
→
define i64 @add_select(i1 %cond, i64 %x, i64 %y) { %add = select i1 %cond, i64 %y, i64 0 %ret = add i64 %add, %x ret i64 %ret }
https://godbolt.org/z/qq61noErs
The text was updated successfully, but these errors were encountered:
Proposed fix: https://reviews.llvm.org/D155461.
Sorry, something went wrong.
9663180
[InstCombine] Preserve metadata when combining select+binop
21099a9
Fixes llvm/llvm-project#63910 Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D155461
No branches or pull requests
When instcombine combines select+add into add+select the
!unpredictable
metadata is lost on the way.→
https://godbolt.org/z/qq61noErs
The text was updated successfully, but these errors were encountered: