[PATCH] D151245: [InstCombine] Add regression test cases for bitreverse optimization; NFC

Austin Chang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 23 12:58:53 PDT 2023


austin880625 created this revision.
austin880625 added reviewers: goldstein.w.n, RKSimon.
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 IR InstCombine pass. This patch includes the new test cases for this optimization

  bitreverse(logic_op(x, bitreverse(y))) -> logic_op(bitreverse(x), y)
  bitreverse(logic_op(bitreverse(x), y)) -> logic_op(x, bitreverse(y))
  bitreverse(logic_op(bitreverse(x), bitreverse(y))) -> logic_op(x, y) with multi-use


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151245

Files:
  llvm/test/Transforms/InstCombine/bitreverse.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151245.524851.patch
Type: text/x-patch
Size: 6678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230523/28fe9911/attachment.bin>


More information about the llvm-commits mailing list