You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 2nd thought, we can generalize further than the above. As long as we're shifting a power-of-2 constant, the compare constant can be almost anything - it's just a check of leading zeros: https://alive2.llvm.org/ce/z/TyGiT0
...and there should be a sibling fold for 'ult'.
llvm-4c2bccfda3892ae13e97b6bfdbc99ec8cf5d095d (trunk) -O3
can not eliminatefoo
butllvm-llvmorg-14.0.4 -O3
can.Target:
x86_64-unknown-linux-gnu
llvm-4c2bccfda3892ae13e97b6bfdbc99ec8cf5d095d (trunk) -O3 [-emit-llvm] -S -o /dev/stdout case.c
Reduced assembly
llvm-llvmorg-14.0.4 -O3 [-emit-llvm] -S -o /dev/stdout case.c
Reduced assembly
Bisection
Bisected to: c0e06c7
Committed by: @nikic
The text was updated successfully, but these errors were encountered: