summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/avx-vpermil.ll
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-05-17 14:48:34 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-05-17 14:48:34 +0000
commita0de26ce34877fac86ef6d939d56bbebb3b4e14c (patch)
tree2a62036b28ba9ee013cb3f2c0c81b575eecae1ee /test/CodeGen/X86/avx-vpermil.ll
parentc032d1aca07ab0a33741eb52b3a2d958e7982f12 (diff)
downloadllvm-a0de26ce34877fac86ef6d939d56bbebb3b4e14c.tar.gz
llvm-a0de26ce34877fac86ef6d939d56bbebb3b4e14c.tar.bz2
llvm-a0de26ce34877fac86ef6d939d56bbebb3b4e14c.tar.xz
X86: Make shuffle -> shift conversion more aggressive about undefs.
Shuffles that only move an element into position 0 of the vector are common in the output of the loop vectorizer and often generate suboptimal code when SSSE3 is not available. Lower them to vector shifts if possible. We still prefer palignr over psrldq because it has higher throughput on sandybridge. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/avx-vpermil.ll')
-rw-r--r--test/CodeGen/X86/avx-vpermil.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/X86/avx-vpermil.ll b/test/CodeGen/X86/avx-vpermil.ll
index 7f2f9d821d..b7f8d72e58 100644
--- a/test/CodeGen/X86/avx-vpermil.ll
+++ b/test/CodeGen/X86/avx-vpermil.ll
@@ -46,7 +46,7 @@ entry:
}
; CHECK: palignr $8
-; CHECK: psrldq $8
+; CHECK: palignr $8
define <8 x float> @funcF(<8 x float> %a) nounwind uwtable readnone ssp {
entry:
%shuffle = shufflevector <8 x float> %a, <8 x float> zeroinitializer, <8 x i32> <i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9>