[PATCH] D16072: [X86][SSE] Add INSERTPS target shuffle combines.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 10:00:23 PST 2016


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

As vector shuffles can only reference two inputs many (V)INSERTPS patterns end up being split over two targets shuffles.

This patch adds combines to attempt to combine (V)INSERTPS nodes with input/output nodes that are just zeroing out these additional vector elements.



Repository:
  rL LLVM

http://reviews.llvm.org/D16072

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16072.44524.patch
Type: text/x-patch
Size: 10229 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160111/56791a9f/attachment.bin>


More information about the llvm-commits mailing list