[InstCombine] Change (add x, c) to (xor x, c) (#75129)
Change (add x, c) to (xor x, c) iff c is constant and c equals the top bit of the demanded bits. Alive2: https://alive2.llvm.org/ce/z/DKmkwF --------- Signed-off-by:Peter Han <fujun.han@iluvatar.com> Co-authored-by:
Peter Han <fujun.han@iluvatar.com>
parent
b97c5a95
Please register or sign in to comment