[PATCH] D52043: [X86][SSE] Lower shuffles to permute(unpack(x, y)) (PR31151)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 13 09:14:58 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: craig.topper, sroland, spatel, lebedev.ri.

Attempt to lower a shuffle as an unpack of elements from two inputs followed by a single-input (wider) permutation.

As long as the permutation is wider this is a win - there may be some circumstances where same size permutations would also be useful but I've left that for future work.


Repository:
  rL LLVM

https://reviews.llvm.org/D52043

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/vector-shuffle-128-v16.ll
  test/CodeGen/X86/vector-shuffle-256-v16.ll
  test/CodeGen/X86/vector-shuffle-256-v32.ll
  test/CodeGen/X86/vector-shuffle-256-v8.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52043.165312.patch
Type: text/x-patch
Size: 15425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180913/3a096bda/attachment.bin>


More information about the llvm-commits mailing list