OSDN Git Service

[X86] Match PSADBW in straight-line code
authorMichael Kuperstein <mkuper@google.com>
Fri, 29 Jul 2016 21:45:51 +0000 (21:45 +0000)
committerMichael Kuperstein <mkuper@google.com>
Fri, 29 Jul 2016 21:45:51 +0000 (21:45 +0000)
commit53c51fa0322f5a69efa3d6ce792030ab28c1a5b1
tree3aa5a5f1289810f292cbdf9a4028c2c33cf7c8d4
parent9d2d4392e4ae78b2d5595371e3d27664e6971822
[X86] Match PSADBW in straight-line code

Up until now, we only had code to match PSADBW patterns that look like what
comes out of the loop vectorizer - a partial reduction inside the loop body
that gets fed into a horizontal operation in a different basic block.

This adds support for straight-line patterns, like those generated by the
SLP vectorizer.

Differential Revision: https://reviews.llvm.org/D22889

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277219 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/sad.ll