[PATCH] [X86][SSE] pslldq/psrldq byte shifts/rotation for SSE2

Simon Pilgrim llvm-dev at redking.me.uk
Wed Oct 22 09:42:49 PDT 2014


Updated patch for SSE2 byte shifts/rotations.

The patch now (re)uses a lambda to detect the sequential 'shifted' shuffle mask - I've split the shift and zeroable matching sections of the byte-shift routine to make it easier to understand/maintain. 

Also, tidied up comments and pushed the byte-rotate profitability check up into the calling functions.

http://reviews.llvm.org/D5699

Files:
  lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/palignr.ll
  test/CodeGen/X86/sse3.ll
  test/CodeGen/X86/vec_insert-5.ll
  test/CodeGen/X86/vector-shuffle-128-v16.ll
  test/CodeGen/X86/vector-shuffle-128-v8.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5699.15249.patch
Type: text/x-patch
Size: 59851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141022/e5928db4/attachment.bin>


More information about the llvm-commits mailing list