diff options
author | Tanya Lattner <tonic@nondot.org> | 2008-03-19 04:14:49 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2008-03-19 04:14:49 +0000 |
commit | f396cc87302d9a69b3680c339d219c49262f5bf3 (patch) | |
tree | 78cde53c3df36e7bb12a1740daafd43c225058cb /test/Transforms/SCCP/2002-05-21-InvalidSimplify.ll | |
parent | 34000979662d9ae9b22e4d05272b77d944871d1c (diff) | |
download | external_llvm-f396cc87302d9a69b3680c339d219c49262f5bf3.zip external_llvm-f396cc87302d9a69b3680c339d219c49262f5bf3.tar.gz external_llvm-f396cc87302d9a69b3680c339d219c49262f5bf3.tar.bz2 |
Upgrade tests to not use llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SCCP/2002-05-21-InvalidSimplify.ll')
-rw-r--r-- | test/Transforms/SCCP/2002-05-21-InvalidSimplify.ll | 51 |
1 files changed, 22 insertions, 29 deletions
diff --git a/test/Transforms/SCCP/2002-05-21-InvalidSimplify.ll b/test/Transforms/SCCP/2002-05-21-InvalidSimplify.ll index 231bdb9..b46d23a 100644 --- a/test/Transforms/SCCP/2002-05-21-InvalidSimplify.ll +++ b/test/Transforms/SCCP/2002-05-21-InvalidSimplify.ll @@ -2,39 +2,32 @@ ; this is in fact NOT the case, so the return should still be alive in the code ; after sccp and CFG simplification have been performed. ; -; RUN: llvm-upgrade < %s | llvm-as | opt -sccp -simplifycfg | llvm-dis | \ +; RUN: llvm-as < %s | opt -sccp -simplifycfg | llvm-dis | \ ; RUN: grep ret - -void "old_main"() { -bb3: ;[#uses=1] +define void @old_main() { +bb3: br label %bb6 - -bb6: ;[#uses=3] - %reg403 = phi int [ %reg155, %bb14 ], [ 0, %bb3 ] ; <int> [#uses=2] - %reg155 = add int %reg403, 1 ; <int> [#uses=3] - +bb6: ; preds = %bb14, %bb3 + %reg403 = phi i32 [ %reg155, %bb14 ], [ 0, %bb3 ] ; <i32> [#uses=1] + %reg155 = add i32 %reg403, 1 ; <i32> [#uses=2] br label %bb11 - -bb11: - %reg407 = phi int [ %reg408, %bb11 ], [ 0, %bb6 ] ; <int> [#uses=2] - %reg408 = add int %reg407, 1 ; <int> [#uses=2] - %cond550 = setle int %reg407, 1 ; <bool> [#uses=1] - br bool %cond550, label %bb11, label %bb12 - -bb12: ;[#uses=2] +bb11: ; preds = %bb11, %bb6 + %reg407 = phi i32 [ %reg408, %bb11 ], [ 0, %bb6 ] ; <i32> [#uses=2] + %reg408 = add i32 %reg407, 1 ; <i32> [#uses=1] + %cond550 = icmp sle i32 %reg407, 1 ; <i1> [#uses=1] + br i1 %cond550, label %bb11, label %bb12 +bb12: ; preds = %bb11 br label %bb13 - -bb13: ;[#uses=3] - %reg409 = phi int [ %reg410, %bb13 ], [ 0, %bb12 ] ; <int> [#uses=1] - %reg410 = add int %reg409, 1 ; <int> [#uses=2] - %cond552 = setle int %reg410, 2 ; <bool> [#uses=1] - br bool %cond552, label %bb13, label %bb14 - -bb14: ;[#uses=2] - %cond553 = setle int %reg155, 31 ; <bool> [#uses=1] - br bool %cond553, label %bb6, label %bb15 - -bb15: ;[#uses=1] +bb13: ; preds = %bb13, %bb12 + %reg409 = phi i32 [ %reg410, %bb13 ], [ 0, %bb12 ] ; <i32> [#uses=1] + %reg410 = add i32 %reg409, 1 ; <i32> [#uses=2] + %cond552 = icmp sle i32 %reg410, 2 ; <i1> [#uses=1] + br i1 %cond552, label %bb13, label %bb14 +bb14: ; preds = %bb13 + %cond553 = icmp sle i32 %reg155, 31 ; <i1> [#uses=1] + br i1 %cond553, label %bb6, label %bb15 +bb15: ; preds = %bb14 ret void } + |