[llvm] [X86] Prefer andl to andb to save one byte encoding (PR #86921)

Danila Malyutin via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 06:15:08 PDT 2024


danilaml wrote:

If it's all around win (i.e. it's at least as fast as andb in all cases and just takes less bytes to encode), then I don't see why it has to be part of matchBitExtract, and can't be own dag combine/transform that does `// Turn (i32)(x & imm8) into (i32)x & imm32.` I think there are already some combines like that, so I'm not sure why they haven't triggered for this case.

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


More information about the llvm-commits mailing list