This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Fold ((A&B)^A)|((A&B)^B) to A^B
AbandonedPublic

Authored by marcauberer on Sep 1 2023, 12:40 PM.

Details

Summary

((A & B) ^ A) | ((A & B) ^ B) -> A ^ B
((A & B) ^ B) | ((A & B) ^ A) -> A ^ B

Alive2: https://alive2.llvm.org/ce/z/i44xmq
Baseline tests: https://reviews.llvm.org/D159371

Diff Detail