[llvm] [InstCombine] Canonicalize Bit Testing by Shifting to Bit 0 (PR #101838)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 4 00:33:04 PDT 2024


nikic wrote:

> Good point. I think we could adapt the transformation in [InstCombineCasts.cpp:988](https://github.com/llvm/llvm-project/blob/b024fd267b813149f7bd5ba88731673b9a29258d/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp#L988) to also support smaller bit widths (and insert a trunc in this case). I could work on such a change if this is fine.

Sound good to me!

https://github.com/llvm/llvm-project/pull/101838


More information about the llvm-commits mailing list