[InstCombine] fold negated low-bit-mask to cmp+select
(-(X & 1)) & Y --> (X & 1) == 0 ? 0 : Y https://alive2.llvm.org/ce/z/rhpH3i This is noted as a missing IR canonicalization in issue #55618. We already managed to fix codegen to the expected form.
Loading
Please sign in to comment