[PATCH] D141660: [InstCombine] Fold pattern xor(and, or) to select
chenglin.bi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 12 23:44:30 PST 2023
bcl5980 created this revision.
bcl5980 added reviewers: spatel, nikic.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
bcl5980 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
(A & B) ^ (A | C) --> A ? ~B : C
https://alive2.llvm.org/ce/z/KCBfXr
https://alive2.llvm.org/ce/z/Pm-zJN
https://alive2.llvm.org/ce/z/VT8uC2
https://reviews.llvm.org/D141660
Files:
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/xor-and-or.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141660.488879.patch
Type: text/x-patch
Size: 8217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230113/3711943e/attachment.bin>
More information about the llvm-commits
mailing list