summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ScalarRepl/2011-06-17-VectorPartialMemset.ll
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-15 00:19:09 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-15 00:19:09 +0000
commitcbf614a93b1d59655e7749df1a31b5cb4ac29972 (patch)
treea0d51e49d1cbbd68dfe38d44436e0d0e6538fdc9 /llvm/test/Transforms/ScalarRepl/2011-06-17-VectorPartialMemset.ll
parentf42c69206d6bee89cbd3c5f8eb502131b234422c (diff)
downloadbcm5719-llvm-cbf614a93b1d59655e7749df1a31b5cb4ac29972.tar.gz
bcm5719-llvm-cbf614a93b1d59655e7749df1a31b5cb4ac29972.zip
Remove the ScalarReplAggregates pass
Nearly all the changes to this pass have been done while maintaining and updating other parts of LLVM. LLVM has had another pass, SROA, which has superseded ScalarReplAggregates for quite some time. Differential Revision: http://reviews.llvm.org/D21316 llvm-svn: 272737
Diffstat (limited to 'llvm/test/Transforms/ScalarRepl/2011-06-17-VectorPartialMemset.ll')
-rw-r--r--llvm/test/Transforms/ScalarRepl/2011-06-17-VectorPartialMemset.ll37
1 files changed, 0 insertions, 37 deletions
diff --git a/llvm/test/Transforms/ScalarRepl/2011-06-17-VectorPartialMemset.ll b/llvm/test/Transforms/ScalarRepl/2011-06-17-VectorPartialMemset.ll
deleted file mode 100644
index af6d1f36fae..00000000000
--- a/llvm/test/Transforms/ScalarRepl/2011-06-17-VectorPartialMemset.ll
+++ /dev/null
@@ -1,37 +0,0 @@
-; RUN: opt < %s -scalarrepl -S | FileCheck %s
-target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"
-target triple = "thumbv7-apple-darwin10"
-
-; CHECK: f
-; CHECK-NOT: alloca
-; CHECK: %[[A:[a-z0-9]*]] = and i128 undef, -16777216
-; CHECK: %[[B:[a-z0-9]*]] = bitcast i128 %[[A]] to <4 x float>
-; CHECK: %[[C:[a-z0-9]*]] = extractelement <4 x float> %[[B]], i32 0
-; CHECK: ret float %[[C]]
-
-define float @f() nounwind ssp {
-entry:
- %a = alloca <4 x float>, align 16
- %p = bitcast <4 x float>* %a to i8*
- call void @llvm.memset.p0i8.i32(i8* %p, i8 0, i32 3, i32 16, i1 false)
- %vec = load <4 x float>, <4 x float>* %a, align 8
- %val = extractelement <4 x float> %vec, i32 0
- ret float %val
-}
-
-; CHECK: g
-; CHECK-NOT: alloca
-; CHECK: and i128
-
-define void @g() nounwind ssp {
-entry:
- %a = alloca { <4 x float> }, align 16
- %p = bitcast { <4 x float> }* %a to i8*
- call void @llvm.memset.p0i8.i32(i8* %p, i8 0, i32 16, i32 16, i1 false)
- %q = bitcast { <4 x float> }* %a to [2 x <2 x float>]*
- %arrayidx = getelementptr inbounds [2 x <2 x float>], [2 x <2 x float>]* %q, i32 0, i32 0
- store <2 x float> undef, <2 x float>* %arrayidx, align 8
- ret void
-}
-
-declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) nounwind
OpenPOWER on IntegriCloud