[InstCombine] Fold (A^B)|~A-->~(A&B)
authorMehrnoosh Heidarpour <mehrnoosh.heidarpour@huawei.com>
Mon, 15 Nov 2021 17:20:46 +0000 (12:20 -0500)
committerSanjay Patel <spatel@rotateright.com>
Mon, 15 Nov 2021 17:29:37 +0000 (12:29 -0500)
commit7daa95c8fac24c314135501a4591ae5a90f1c439
treed1fb2d40a362993741142b67c95a6759a5641ffa
parentf0bc7d24882ab84f6398a1ea614dd0bf6e2a1085
[InstCombine] Fold (A^B)|~A-->~(A&B)

https://alive2.llvm.org/ce/z/2v6rhF

Fixes:
https://llvm.org/PR52478

Differential Revision: https://reviews.llvm.org/D113783
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/and-or-icmps.ll
llvm/test/Transforms/InstCombine/or-xor.ll