Fixes #57531
This transformation may be particularly useful on x86-64, because x & (x - 1) can be performed by a single blsr instruction.
Differential D133362
[InstCombine] Fold x + (x | -x) to x & (x - 1) marcauberer on Sep 6 2022, 8:34 AM. Authored by
Details Fixes #57531 This transformation may be particularly useful on x86-64, because x & (x - 1) can be performed by a single blsr instruction.
Diff Detail
Event Timeline
Comment Actions
Comment Actions @spatel sorry, forgot to refresh the test ref. Now the change is ready for the final review ... |
Use m_Neg()? Also, you need to use m_Deferred() for those later m_Value()