[PATCH] D149699: [InstCombine] Improve bswap optimization

Austin Chang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 4 13:03:01 PDT 2023


austin880625 updated this revision to Diff 519624.
austin880625 added a comment.

handles `bswap(logic_op(bswap(x), bswap(y))) -> logic_op(x, y)` case with multi-use


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

https://reviews.llvm.org/D149699

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
  llvm/test/Transforms/InstCombine/bswap-fold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149699.519624.patch
Type: text/x-patch
Size: 12661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230504/2f640ead/attachment.bin>


More information about the llvm-commits mailing list