[PATCH] D131142: [InstCombine] Canonicalize ((x + C1) & C2) --> ((x & C2) + C1) ((x + C1) & C2) --> ((x & C2) + C1) ((x + C1) & C2) --> ((x & C2) + C1) for suitable constants C1 and C2.

Eric Gullufsen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 3 22:24:22 PDT 2022


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

  Depends on D131140 and D130075


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131142

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/and-xor-or.ll
  llvm/test/Transforms/InstCombine/integer-round-up-pow2-alignment.ll
  llvm/test/Transforms/InstCombine/or.ll
  llvm/test/Transforms/InstCombine/sub.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131142.449878.patch
Type: text/x-patch
Size: 15731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220804/bb19628e/attachment.bin>


More information about the llvm-commits mailing list