[PATCH] D112276: [InstCombine] Fold `(c & ~(a | b)) | (b & ~(a | c))` to `~a & (b ^ c)`

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 28 11:01:42 PDT 2021


spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.

The one-use checks are conservative, but not wrong, so LGTM. But please add a TODO comment above the match, so if someone does happen to return to this some day, they will know that the code didn't try to go all out to enable the transform.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112276/new/

https://reviews.llvm.org/D112276



More information about the llvm-commits mailing list