[PATCH] D113783: [InstCombine] Fold (A^B)|~A-->~(A&B)
Mehrnoosh Heidarpour via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 14 06:52:29 PST 2021
MehrHeidar updated this revision to Diff 387081.
MehrHeidar added a comment.
Add a comment to clarify the `Op0` in the `or` operation is guaranteed to be `not` in the foldable pattern due to the swap that is happening before.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113783/new/
https://reviews.llvm.org/D113783
Files:
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/and-or-icmps.ll
llvm/test/Transforms/InstCombine/or-xor.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113783.387081.patch
Type: text/x-patch
Size: 5284 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211114/86fd44bd/attachment.bin>
More information about the llvm-commits
mailing list