[PATCH] D46133: [InstCombine, ARM, AArch64] Convert table lookup to shuffle vector

Alexandros Lamprineas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 26 09:52:07 PDT 2018


labrinea created this revision.
labrinea added reviewers: llvm-commits, majnemer, t.p.northover.
Herald added subscribers: chrib, kristof.beyls, rengolin.
Herald added a reviewer: javed.absar.

Turning a table lookup intrinsic into a shuffle vector instruction can be beneficial. If the mask used for the lookup is the constant vector {7,6,5,4,3,2,1,0}, then the back-end generates rev64 instructions instead.


https://reviews.llvm.org/D46133

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/Transforms/InstCombine/AArch64/table-lookup.ll
  test/Transforms/InstCombine/ARM/table-lookup.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46133.144141.patch
Type: text/x-patch
Size: 5142 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180426/39a03c52/attachment.bin>


More information about the llvm-commits mailing list