aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SLPVectorizer/X86/cse.ll
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-06-28 22:07:09 +0000
committerNadav Rotem <nrotem@apple.com>2013-06-28 22:07:09 +0000
commitac2678684689448d1c88f644f3fa88aa4f93997c (patch)
tree8fcb1782712faf5f102e7f3840a5918e2cd1811f /test/Transforms/SLPVectorizer/X86/cse.ll
parentc09324483cf8c8904b7250f072d8f64e9b00656e (diff)
downloadexternal_llvm-ac2678684689448d1c88f644f3fa88aa4f93997c.zip
external_llvm-ac2678684689448d1c88f644f3fa88aa4f93997c.tar.gz
external_llvm-ac2678684689448d1c88f644f3fa88aa4f93997c.tar.bz2
SLP Vectorizer: Add support for trees with external users.
To support this we have to insert 'extractelement' instructions to pick the right lane. We had this functionality before but I removed it when we moved to the multi-block design because it was too complicated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SLPVectorizer/X86/cse.ll')
-rw-r--r--test/Transforms/SLPVectorizer/X86/cse.ll11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/Transforms/SLPVectorizer/X86/cse.ll b/test/Transforms/SLPVectorizer/X86/cse.ll
index 17b966b..63eaeec 100644
--- a/test/Transforms/SLPVectorizer/X86/cse.ll
+++ b/test/Transforms/SLPVectorizer/X86/cse.ll
@@ -11,13 +11,12 @@ target triple = "i386-apple-macosx10.8.0"
;}
;CHECK: @test
-;CHECK: insertelement <2 x double> undef
-;CHECK-NEXT: insertelement <2 x double>
-;CHECK-NEXT: fadd <2 x double>
+;CHECK: load <2 x double>
+;CHECK: fadd <2 x double>
+;CHECK: store <2 x double>
+;CHECK: insertelement <2 x double>
+;CHECK: fadd <2 x double>
;CHECK: store <2 x double>
-;CHECK: insertelement <2 x double>
-;CHECK-NEXT: fadd <2 x double>
-;CHECK: store <2 x double>
;CHECK: ret i32
define i32 @test(double* nocapture %G) {