[InstCombine] Fold (sub (xor X, (sext C)), (sext C)) => (select C (neg X), X) (#79417)
This is useful when computing absdiff. Correctness prove: https://alive2.llvm.org/ce/z/eMbxps, https://alive2.llvm.org/ce/z/SNCWJe . --------- Co-authored-by:Yingwei Zheng <dtcxzyw@qq.com>
parent
c67a4ae4
Please register or sign in to comment