[PATCH] [X86][SSE] Avoid shuffles with zero by using pshufb to create zeros

Simon Pilgrim llvm-dev at redking.me.uk
Thu Jan 8 03:56:09 PST 2015


Hi chandlerc, spatel, andreadb,

pshufb can shuffle in zero bytes as well as bytes from a source vector - we can use this to avoid having to shuffle 2 vectors and ORing the result when the used inputs from a vector are all zeroable.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6878

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

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6878.17891.patch
Type: text/x-patch
Size: 9029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150108/bd445d30/attachment.bin>


More information about the llvm-commits mailing list