[PATCH] D139080: [Instcombine] fold logic ops to select

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 00:20:33 PST 2022


bcl5980 created this revision.
bcl5980 added reviewers: RKSimon, spatel.
Herald added a subscriber: hiraditya.
Herald added a project: All.
bcl5980 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

(C & X) | ~(C | Y) -> C ? X : ~Y

https://alive2.llvm.org/ce/z/4yLh_i


https://reviews.llvm.org/D139080

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/test/Transforms/InstCombine/logical-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139080.479183.patch
Type: text/x-patch
Size: 9370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221201/74ec4d25/attachment.bin>


More information about the llvm-commits mailing list