summaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/PhiEliminate2.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-18 03:45:45 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-18 03:45:45 +0000
commitf04d8d1593d0eedf5b9deaab48462dd88fefab93 (patch)
tree0cbf561bbe8c905283770e5ae2317f5f7367512c /test/Transforms/SimplifyCFG/PhiEliminate2.ll
parente856685710706e580a3ece2c59ced2cdf0719f55 (diff)
downloadexternal_llvm-f04d8d1593d0eedf5b9deaab48462dd88fefab93.zip
external_llvm-f04d8d1593d0eedf5b9deaab48462dd88fefab93.tar.gz
external_llvm-f04d8d1593d0eedf5b9deaab48462dd88fefab93.tar.bz2
Upgrade tests to not use llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/PhiEliminate2.ll')
-rw-r--r--test/Transforms/SimplifyCFG/PhiEliminate2.ll19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/Transforms/SimplifyCFG/PhiEliminate2.ll b/test/Transforms/SimplifyCFG/PhiEliminate2.ll
index fb00a13..ec1b91a 100644
--- a/test/Transforms/SimplifyCFG/PhiEliminate2.ll
+++ b/test/Transforms/SimplifyCFG/PhiEliminate2.ll
@@ -1,15 +1,14 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br
+; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
-int %test(bool %C, int %V1, int %V2) {
+define i32 @test(i1 %C, i32 %V1, i32 %V2) {
entry:
- br bool %C, label %then, label %Cont
-
-then:
- %V3 = or int %V2, %V1
+ br i1 %C, label %then, label %Cont
+then: ; preds = %entry
+ %V3 = or i32 %V2, %V1 ; <i32> [#uses=1]
br label %Cont
-Cont:
- %V4 = phi int [%V1, %entry], [%V3, %then]
- call int %test(bool false, int 0, int 0) ;; don't fold into preds
- ret int %V1
+Cont: ; preds = %then, %entry
+ %V4 = phi i32 [ %V1, %entry ], [ %V3, %then ] ; <i32> [#uses=0]
+ call i32 @test( i1 false, i32 0, i32 0 ) ; <i32>:0 [#uses=0]
+ ret i32 %V1
}