[PATCH] [X86, AVX] use blends instead of insert128 with index 0

Sanjay Patel spatel at rotateright.com
Tue Mar 17 10:54:42 PDT 2015


Updated patch: the previous version of the patch was adding logic to PerformShuffleCombine256(), but that won't catch every case where we create an INSERT_SUBVECTOR. And yes, there was one more shuffle regression test where we expected an inserti128 $0

In this version, I've moved the code into Insert128BitVector(). No other functional changes.

This should catch every creation of an INSERT_SUBVECTOR that can be optimized with a BLENDI.


http://reviews.llvm.org/D8366

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/2012-04-26-sdglue.ll
  test/CodeGen/X86/avx-cast.ll
  test/CodeGen/X86/vector-shuffle-256-v32.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8366.22104.patch
Type: text/x-patch
Size: 8401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150317/44dac184/attachment.bin>


More information about the llvm-commits mailing list