[PATCH] D116236: [InstCombine] (b & ~a & ~c) | ~(a | b) --> ~((b & c) | a)

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 23 13:21:35 PST 2021


rampitec created this revision.
rampitec added a reviewer: spatel.
Herald added a subscriber: hiraditya.
rampitec requested review of this revision.
Herald added a project: LLVM.

And inverted case `(b | ~a | ~c) & ~(a & b)` --> `~((b | c) & a)`.
This is demorganed version of the same expression with LHS
`(b & ~(a | c))`, where LHS was not demorganed due to extra
uses.


https://reviews.llvm.org/D116236

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/test/Transforms/InstCombine/and-xor-or.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116236.396084.patch
Type: text/x-patch
Size: 21584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211223/df58c118/attachment.bin>


More information about the llvm-commits mailing list