[PATCH] D19198: [X86][AVX] Generalized matching for target shuffle combines

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 17 08:10:38 PDT 2016


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

This patch is a first step towards a more extendible method of matching combined target shuffle masks.

Initially this just pulls out the existing basic mask matches and adds support for some 256/512 bit equivalents. Future patterns will require a number of features to be added but I wanted to keep this patch simple.

I hope we can avoid duplication between shuffle lowering and combining and share more complex pattern match functions in future commits (pemutes + insertps are my next targets).

Repository:
  rL LLVM

http://reviews.llvm.org/D19198

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/vector-shuffle-combining-avx.ll
  test/CodeGen/X86/vector-shuffle-combining-avx512bw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19198.54006.patch
Type: text/x-patch
Size: 13889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160417/969ede38/attachment.bin>


More information about the llvm-commits mailing list