[PATCH] D152568: [InstCombine] Transform `(binop1 (binop2 (lshift X,Amt),Mask),(lshift Y,Amt))`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 11 12:42:11 PDT 2023


goldstein.w.n updated this revision to Diff 530324.
goldstein.w.n edited the summary of this revision.
goldstein.w.n added a comment.

Fix nits and handle `add` better


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152568/new/

https://reviews.llvm.org/D152568

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/and-xor-or.ll
  llvm/test/Transforms/InstCombine/binop-and-shifts.ll
  llvm/test/Transforms/InstCombine/or-shifted-masks.ll
  llvm/test/Transforms/PhaseOrdering/SystemZ/sub-xor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152568.530324.patch
Type: text/x-patch
Size: 36555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230611/fe0e12c2/attachment.bin>


More information about the llvm-commits mailing list