[PATCH] D21495: [X86][SSE] Allow target shuffle combining to match masks with SM_Sentinel values

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 18 14:59:27 PDT 2016


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

We currently only allow exact matches of shuffle mask patterns during target shuffle combining.

This patch relaxes this to permit SM_SentinelUndef in the combined shuffle to always be accepted as well as allowing exact matching of the SM_SentinelZero value.

I've adjusted some tests that were requiring exact shuffle masks to now include undef values.

Repository:
  rL LLVM

http://reviews.llvm.org/D21495

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/sse3-avx-addsub-2.ll
  test/CodeGen/X86/vector-shuffle-combining-avx.ll
  test/CodeGen/X86/vector-shuffle-combining-avx512bw.ll
  test/CodeGen/X86/vector-shuffle-combining-ssse3.ll
  test/CodeGen/X86/vector-shuffle-combining-xop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21495.61176.patch
Type: text/x-patch
Size: 18074 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160618/e33a491f/attachment.bin>


More information about the llvm-commits mailing list