[PATCH] D13252: [InstCombine] Teach how to convert SSSE3/AVX2 byte shuffles to builtin shuffles if the shuffle mask is constant.

Andrea Di Biagio via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 09:51:59 PDT 2015


andreadb created this revision.
andreadb added reviewers: RKSimon, spatel, qcolombet.
andreadb added a subscriber: llvm-commits.

This patch teaches InstCombiner how to convert a SSSE3/AVX2 byte shuffle to a builtin shuffle if the mask is constant.

Converting byte shuffle intrinsic calls to builtin shuffles can help finding more opportunities for combining shuffles later on in selection dag.

We may end up with byte shuffles with constant masks as the result of inlining.

Added test x86-pshufb.ll.

Please let me know if ok to submit.

Thanks,
Andrea

http://reviews.llvm.org/D13252

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/Transforms/InstCombine/x86-pshufb.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13252.35990.patch
Type: text/x-patch
Size: 18111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150929/c8010200/attachment-0001.bin>


More information about the llvm-commits mailing list