]> granicus.if.org Git - llvm/commit
[X86][SSE] Improvements to byte shift shuffle matching
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 25 Nov 2014 22:34:59 +0000 (22:34 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 25 Nov 2014 22:34:59 +0000 (22:34 +0000)
commit7f6cee962641ac5178a839f3f57144abf61b2ef7
tree2a05f1993cd6bf0e03d5e0704d8f1dfa2317683e
parent5bf7bcf6b36f94da769952f98b04f6f526622ea4
[X86][SSE] Improvements to byte shift shuffle matching

Since (v)pslldq / (v)psrldq instructions resolve to a single input argument it is useful to match it much earlier than we currently do - this prevents more complicated shuffles (notably insertion into a zero vector) matching before it.

Differential Revision: http://reviews.llvm.org/D6409

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222796 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/combine-or.ll
test/CodeGen/X86/vector-shuffle-128-v2.ll
test/CodeGen/X86/vector-shuffle-128-v4.ll
test/CodeGen/X86/vector-shuffle-128-v8.ll