[PATCH] D88578: [InstCombine] recognizeBSwapOrBitReverseIdiom - support for 'partial' bswap patterns (PR47191)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 08:25:22 PDT 2020


RKSimon created this revision.
RKSimon added reviewers: spatel, craig.topper, lebedev.ri, nikic.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
RKSimon requested review of this revision.

If we're bswap'ing some bytes and zero'ing the remainder we can perform this as a bswap+mask which helps us match 'partial' bswaps as a first step towards folding into a more complex bswap pattern.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88578

Files:
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/test/Transforms/InstCombine/bswap.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88578.295296.patch
Type: text/x-patch
Size: 10626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200930/4b2287fe/attachment.bin>


More information about the llvm-commits mailing list