[PATCH] D22889: [X86] Match PSADBW in straight-line code

Michael Kuperstein via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 27 15:34:24 PDT 2016


mkuper created this revision.
mkuper added reviewers: spatel, RKSimon, wmi.
mkuper added a subscriber: llvm-commits.

Up until now, we only had code to match PSADBW patterns similar to what comes out of the loop vectorizer - a partial reduction inside the loop body that gets fed into a horizontal operation in a different block.
This adds support for straight-line patterns, like those generated by the SLP vectorizer.

https://reviews.llvm.org/D22889

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/sad.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22889.65819.patch
Type: text/x-patch
Size: 23800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160727/5f266944/attachment.bin>


More information about the llvm-commits mailing list