summaryrefslogtreecommitdiff
path: root/test/Transforms/ScalarRepl
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2012-06-13 17:55:22 +0000
committerPete Cooper <peter_cooper@apple.com>2012-06-13 17:55:22 +0000
commite91f926f3b76774aa7ed4c327fbde6a39e42c87f (patch)
tree96ec37d506b3e1e6aba1737429b9234db79261d4 /test/Transforms/ScalarRepl
parent51786e0aaec76b973205066bd44f7f427b21969f (diff)
downloadllvm-e91f926f3b76774aa7ed4c327fbde6a39e42c87f.tar.gz
llvm-e91f926f3b76774aa7ed4c327fbde6a39e42c87f.tar.bz2
llvm-e91f926f3b76774aa7ed4c327fbde6a39e42c87f.tar.xz
Revert "Allow SROA to look at a vector type and see if the offset is out of range to be replaced with a scalar access"
This reverts commit 51786e0aaec76b973205066bd44f7f427b21969f. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ScalarRepl')
-rw-r--r--test/Transforms/ScalarRepl/2011-06-08-VectorExtractValue.ll11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/Transforms/ScalarRepl/2011-06-08-VectorExtractValue.ll b/test/Transforms/ScalarRepl/2011-06-08-VectorExtractValue.ll
index 8da03cf32c..98fa1c684c 100644
--- a/test/Transforms/ScalarRepl/2011-06-08-VectorExtractValue.ll
+++ b/test/Transforms/ScalarRepl/2011-06-08-VectorExtractValue.ll
@@ -10,7 +10,8 @@ target triple = "x86_64-apple-macosx10.7.0"
; CHECK: main
; CHECK-NOT: alloca
-; CHECK: extractelement <2 x float> zeroinitializer, i32 0
+; CHECK: %[[A:[a-z0-9]*]] = and i128
+; CHECK: %[[B:[a-z0-9]*]] = trunc i128 %[[A]] to i32
define void @main() uwtable ssp {
entry:
@@ -27,7 +28,8 @@ entry:
; CHECK: test1
; CHECK-NOT: alloca
-; CHECK: extractelement <2 x float> zeroinitializer, i32 0
+; CHECK: %[[A:[a-z0-9]*]] = and i128
+; CHECK: %[[B:[a-z0-9]*]] = trunc i128 %[[A]] to i32
define void @test1() uwtable ssp {
entry:
@@ -41,8 +43,9 @@ entry:
; CHECK: test2
; CHECK-NOT: alloca
-; CHECK: %[[A:[a-z0-9]*]] = extractelement <2 x float> zeroinitializer, i32 0
-; CHECK: fadd float %[[A]], 1.000000e+00
+; CHECK: and i128
+; CHECK: or i128
+; CHECK: trunc i128
; CHECK-NOT: insertelement
; CHECK-NOT: extractelement