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
This probably isn't worth the compile-time cost of using ValueTracking, but we could add a direct pattern match for this and similar icmp patterns:
define i1 @src(i8 %x) { %negx = sub i8 0, %x %pow2_or_zero = and i8 %negx, %x %cmp = icmp slt i8 %pow2_or_zero, 0 ret i1 %cmp } define i1 @tgt(i8 %x) { %cmp = icmp eq i8 %x, -128 ret i1 %cmp }
https://alive2.llvm.org/ce/z/_J5q3S
The text was updated successfully, but these errors were encountered:
I would like to have a try :)
Sorry, something went wrong.
Candidate patch: https://reviews.llvm.org/D144777
f88436c
junaire
No branches or pull requests
This probably isn't worth the compile-time cost of using ValueTracking, but we could add a direct pattern match for this and similar icmp patterns:
https://alive2.llvm.org/ce/z/_J5q3S
The text was updated successfully, but these errors were encountered: