summaryrefslogtreecommitdiff
path: root/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-19 07:28:33 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-19 07:28:33 +0000
commite6d5d39c072d3b16ff4183c515d7ccf198192958 (patch)
tree57312300a30d0b10726d10d7928aa6f657e9ad28 /test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll
parentce7d5db4d86b6eef20ffb9e981a1f0d428879e57 (diff)
downloadllvm-e6d5d39c072d3b16ff4183c515d7ccf198192958.tar.gz
llvm-e6d5d39c072d3b16ff4183c515d7ccf198192958.tar.bz2
llvm-e6d5d39c072d3b16ff4183c515d7ccf198192958.tar.xz
Upgrade tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll')
-rw-r--r--test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll b/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll
index ce274fa327..27d00150d6 100644
--- a/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll
+++ b/test/Transforms/Mem2Reg/2003-06-26-IterativePromote.ll
@@ -1,16 +1,16 @@
; Promoting some values allows promotion of other values.
-; RUN: llvm-upgrade < %s | llvm-as | opt -mem2reg | llvm-dis | not grep alloca
+; RUN: llvm-as < %s | opt -mem2reg | llvm-dis | not grep alloca
-int %test2() {
- %result = alloca int ; ty=int*
- %a = alloca int ; ty=int*
- %p = alloca int* ; ty=int**
- store int 0, int* %a
- store int* %a, int** %p
- %tmp.0 = load int** %p ; ty=int*
- %tmp.1 = load int* %tmp.0 ; ty=int
- store int %tmp.1, int* %result
- %tmp.2 = load int* %result ; ty=int
- ret int %tmp.2
+define i32 @test2() {
+ %result = alloca i32 ; <i32*> [#uses=2]
+ %a = alloca i32 ; <i32*> [#uses=2]
+ %p = alloca i32* ; <i32**> [#uses=2]
+ store i32 0, i32* %a
+ store i32* %a, i32** %p
+ %tmp.0 = load i32** %p ; <i32*> [#uses=1]
+ %tmp.1 = load i32* %tmp.0 ; <i32> [#uses=1]
+ store i32 %tmp.1, i32* %result
+ %tmp.2 = load i32* %result ; <i32> [#uses=1]
+ ret i32 %tmp.2
}