aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/TailDup/MergeTest.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-10 07:21:50 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-10 07:21:50 +0000
commitceca194c4355224723b309a3a27c5e5bc19cb6fc (patch)
treed976e8cf9d933c32868d72a94d1ec2d9d7205735 /test/Transforms/TailDup/MergeTest.ll
parentf79e60649a5edea03bdccf8521d77c15cbb33af4 (diff)
downloadexternal_llvm-ceca194c4355224723b309a3a27c5e5bc19cb6fc.zip
external_llvm-ceca194c4355224723b309a3a27c5e5bc19cb6fc.tar.gz
external_llvm-ceca194c4355224723b309a3a27c5e5bc19cb6fc.tar.bz2
Remove llvm-upgrade and update tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/TailDup/MergeTest.ll')
-rw-r--r--test/Transforms/TailDup/MergeTest.ll42
1 files changed, 19 insertions, 23 deletions
diff --git a/test/Transforms/TailDup/MergeTest.ll b/test/Transforms/TailDup/MergeTest.ll
index c11d735..252bf56 100644
--- a/test/Transforms/TailDup/MergeTest.ll
+++ b/test/Transforms/TailDup/MergeTest.ll
@@ -1,31 +1,27 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -tailduplicate | llvm-dis | grep add | not grep uses=1
+; RUN: llvm-as < %s | opt -tailduplicate | llvm-dis | grep add | not grep uses=1
-int %test1(bool %C, int %A, int* %P) {
+define i32 @test1(i1 %C, i32 %A, i32* %P) {
entry:
- br bool %C, label %L1, label %L2
-
-L1:
- store int 1, int* %P
- br label %L2
-
-L2:
- %X = add int %A, 17
- ret int %X
+ br i1 %C, label %L1, label %L2
+L1: ; preds = %entry
+ store i32 1, i32* %P
+ br label %L2
+L2: ; preds = %L1, %entry
+ %X = add i32 %A, 17 ; <i32> [#uses=1]
+ ret i32 %X
}
-int %test2(bool %C, int %A, int* %P) {
+define i32 @test2(i1 %C, i32 %A, i32* %P) {
entry:
- br bool %C, label %L1, label %L2
-
-L1:
- store int 1, int* %P
- br label %L3
-
-L2:
- store int 7, int* %P
+ br i1 %C, label %L1, label %L2
+L1: ; preds = %entry
+ store i32 1, i32* %P
+ br label %L3
+L2: ; preds = %entry
+ store i32 7, i32* %P
br label %L3
-L3:
- %X = add int %A, 17
- ret int %X
+L3: ; preds = %L2, %L1
+ %X = add i32 %A, 17 ; <i32> [#uses=1]
+ ret i32 %X
}