[llvm] [InstCombine] Canonicalize Bit Testing by Shifting to Sign Bit (PR #101822)
Marius Kamp via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 08:21:36 PDT 2024
mskamp wrote:
> This pattern does not seem to exist in real-world code :( We already fold `(X << C) < 0` -> `(X u>> (BW - C - 1)) != 0`: https://godbolt.org/z/KnjsKT579
Thank you for pointing this out. Then, the transformation is probably not worth the trouble.
https://github.com/llvm/llvm-project/pull/101822
More information about the llvm-commits
mailing list