[PATCH] D149782: [DAGCombiner] Add bswap(logic_op(bswap(x), y)) regression test case; NFC

Austin Chang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 13:42:36 PDT 2023


austin880625 created this revision.
austin880625 added reviewers: goldstein.w.n, nikic, RKSimon.
Herald added subscribers: StephenFan, pengfei.
Herald added a project: All.
austin880625 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fold the following case on SelectionDAG combiner
This patch includes the regression test cases

  bswap(logic_op(x, bswap(y))) -> logic_op(bswap(x), y)
  bswap(logic_op(bswap(x), y)) -> logic_op(x, bswap(y))


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149782

Files:
  llvm/test/CodeGen/X86/combine-bswap.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149782.519233.patch
Type: text/x-patch
Size: 4025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230503/dccf5ccb/attachment.bin>


More information about the llvm-commits mailing list