[PATCH] D11541: [X86][SSE] Use bitmasks instead of shuffles where possible.

Simon Pilgrim llvm-dev at redking.me.uk
Mon Jul 27 14:29:02 PDT 2015


RKSimon created this revision.
RKSimon added reviewers: chandlerc, qcolombet, andreadb.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.

Split off from D11518.

VPAND is a lot faster than VPSHUFB and VPBLENDVB - this patch ensures we attempt to lower to a basic bitmask before lowering to the slower byte shuffle/blend instructions.

Repository:
  rL LLVM

http://reviews.llvm.org/D11541

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11541.30738.patch
Type: text/x-patch
Size: 6346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150727/b83745a7/attachment.bin>


More information about the llvm-commits mailing list