summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/SimplifyCFG/2002-06-24-PHINode.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
commit5f4b355f209c772f438d33f3e60c04403d5462eb (patch)
tree25f6441aedb4ae5e89993b0ebaca6817ef24acd2 /llvm/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll
parentb5d11980d9c54e4a0ebb3873ef89054726643658 (diff)
downloadbcm5719-llvm-5f4b355f209c772f438d33f3e60c04403d5462eb.tar.gz
bcm5719-llvm-5f4b355f209c772f438d33f3e60c04403d5462eb.zip
Remove llvm-upgrade and update tests.
llvm-svn: 48137
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll18
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll b/llvm/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll
index a669a3ffc73..87b428600ba 100644
--- a/llvm/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll
+++ b/llvm/test/Transforms/SimplifyCFG/2002-06-24-PHINode.ll
@@ -1,14 +1,14 @@
; -simplifycfg is not folding blocks if there is a PHI node involved. This
; should be fixed eventually
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | not grep br
-
-int %main(int %argc) {
- br label %InlinedFunctionReturnNode
-
-InlinedFunctionReturnNode: ;[#uses=1]
- %X = phi int [ 7, %0 ] ; <int> [#uses=1]
- %Y = add int %X, %argc ; <int> [#uses=1]
- ret int %Y
+; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
+
+define i32 @main(i32 %argc) {
+; <label>:0
+ br label %InlinedFunctionReturnNode
+InlinedFunctionReturnNode: ; preds = %0
+ %X = phi i32 [ 7, %0 ] ; <i32> [#uses=1]
+ %Y = add i32 %X, %argc ; <i32> [#uses=1]
+ ret i32 %Y
}
OpenPOWER on IntegriCloud