[PATCH] D14050: [X86][SSE] Shuffle blends with zero

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 25 15:06:43 PDT 2015


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

This patch generalizes the zeroing of vector elements with the BLEND instructions. Currently a zero vector will only blend if the shuffled elements are correctly inline, this patch recognises when a vector input is zero (or zeroable) and modifies a local copy of the shuffle mask to support a blend. As a zeroable vector input may not be all zeroes, the zeroable vector is regenerated if necessary.

Repository:
  rL LLVM

http://reviews.llvm.org/D14050

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/avx-vperm2x128.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14050.38360.patch
Type: text/x-patch
Size: 6517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151025/bee06a6f/attachment.bin>


More information about the llvm-commits mailing list