[PATCH] D132565: [NFC][InstCombine] Baseline tests for canonicalizing "logic op, add"

Eric Gullufsen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 07:59:38 PDT 2022


emgullufsen created this revision.
Herald added a project: All.
emgullufsen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

((x + C1 <https://reviews.llvm.org/C1>) & C2) --> ((x & C2) + C1 <https://reviews.llvm.org/C1>)
((x + C1 <https://reviews.llvm.org/C1>) ^ C2) --> ((x ^ C2) + C1 <https://reviews.llvm.org/C1>)
((x + C1 <https://reviews.llvm.org/C1>) | C2) --> ((x | C2) + C1 <https://reviews.llvm.org/C1>)

for suitable constants C1 <https://reviews.llvm.org/C1> and C2.

Differential Revision D131140 <https://reviews.llvm.org/D131140>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132565

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132565.455220.patch
Type: text/x-patch
Size: 9816 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220824/3c43abba/attachment.bin>


More information about the llvm-commits mailing list