[InstCombine] Fold x + (x | -x) to x & (x - 1)
Fixes #57531 This transformation may be particularly useful on x86-64, because x & (x - 1) can be performed by a single blsr instruction. Differential Revision: https://reviews.llvm.org/D133362
Loading
Please sign in to comment