[InstCombine] Fold `a & ~(a ^ b)` to `x & y`
```
----------------------------------------
define i32 @and_xor_not_common_op(i32 %a, i32 %b) {
%0:
%b2 = xor i32 %b, 4294967295
%t2 = xor i32 %a, %b2
%t4 = and i32 %t2, %a
ret i32 %t4
}
=>
define i32 @and_xor_not_common_op(i32 %a, i32 %b) {
%0:
%t4 = and i32 %a, %b
ret i32 %t4
}
Transformation seems to be correct!
```
parent
1fda2336
Please register or sign in to comment