summaryrefslogtreecommitdiff
path: root/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-01 09:15:35 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-01 09:15:35 +0000
commitec9a35a6f9143cfa325e0413cc297c48f627973a (patch)
treec1b0621415acc20f94152c51174d53fae3dbc8cc /test/Transforms/ADCE/2003-06-24-BadSuccessor.ll
parentab3b77834c9232e4c13acb29afe1920b97c5a20b (diff)
downloadllvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.gz
llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.bz2
llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.xz
Remove llvm-upgrade and update test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ADCE/2003-06-24-BadSuccessor.ll')
-rw-r--r--test/Transforms/ADCE/2003-06-24-BadSuccessor.ll89
1 files changed, 43 insertions, 46 deletions
diff --git a/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll b/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll
index 1a730194ff..e5dd0cc6d9 100644
--- a/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll
+++ b/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll
@@ -1,94 +1,91 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -adce -disable-output
+; RUN: llvm-as < %s | opt -adce -disable-output
+target datalayout = "e-p:32:32"
+ %struct..CppObjTypeDesc = type { i32, i16, i16 }
+ %struct..TypeToken = type { i32, i16, i16 }
-target endian = little
-target pointersize = 32
- %struct..CppObjTypeDesc = type { uint, ushort, ushort }
- %struct..TypeToken = type { uint, ushort, ushort }
-
-implementation ; Functions:
-
-uint %C_ReFaxToDb() {
-entry: ; No predecessors!
- br bool false, label %endif.0, label %then.0
+define i32 @C_ReFaxToDb() {
+entry:
+ br i1 false, label %endif.0, label %then.0
then.0: ; preds = %entry
- ret uint 0
+ ret i32 0
endif.0: ; preds = %entry
- br bool false, label %then.11, label %then.4
+ br i1 false, label %then.11, label %then.4
then.4: ; preds = %endif.0
- ret uint 0
+ ret i32 0
then.11: ; preds = %endif.0
- br bool false, label %loopentry.0, label %else.2
+ br i1 false, label %loopentry.0, label %else.2
-loopentry.0: ; preds = %then.11, %endif.14, %loopentry.1
- br bool false, label %endif.14, label %loopexit.0
+loopentry.0: ; preds = %loopentry.1, %endif.14, %then.11
+ br i1 false, label %endif.14, label %loopexit.0
endif.14: ; preds = %loopentry.0
- br bool false, label %loopentry.1, label %loopentry.0
+ br i1 false, label %loopentry.1, label %loopentry.0
-loopentry.1: ; preds = %endif.14, %then.53, %then.53, %then.53, %then.53, %then.53
- %SubArrays.10 = phi uint* [ %SubArrays.8, %then.53 ] , [ null, %endif.14 ] ; <uint*> [#uses=3]
- br bool false, label %no_exit.1, label %loopentry.0
+loopentry.1: ; preds = %then.53, %endif.14
+ %SubArrays.10 = phi i32* [ %SubArrays.8, %then.53 ], [ null, %endif.14 ] ; <i32*> [#uses=3]
+ br i1 false, label %no_exit.1, label %loopentry.0
no_exit.1: ; preds = %loopentry.1
- switch uint 0, label %label.17 [
- uint 2, label %label.11
- uint 19, label %label.10
+ switch i32 0, label %label.17 [
+ i32 2, label %label.11
+ i32 19, label %label.10
]
label.10: ; preds = %no_exit.1
- br bool false, label %then.43, label %endif.43
+ br i1 false, label %then.43, label %endif.43
then.43: ; preds = %label.10
- br bool false, label %then.44, label %endif.44
+ br i1 false, label %then.44, label %endif.44
then.44: ; preds = %then.43
- br bool false, label %shortcirc_next.4, label %endif.45
+ br i1 false, label %shortcirc_next.4, label %endif.45
shortcirc_next.4: ; preds = %then.44
- br bool false, label %no_exit.2, label %loopexit.2
+ br i1 false, label %no_exit.2, label %loopexit.2
no_exit.2: ; preds = %shortcirc_next.4
- %tmp.897 = getelementptr uint* %SubArrays.10, long 0 ; <uint*> [#uses=1]
- %tmp.899 = load uint* %tmp.897 ; <uint> [#uses=1]
- store uint %tmp.899, uint* null
- ret uint 0
+ %tmp.897 = getelementptr i32* %SubArrays.10, i64 0 ; <i32*> [#uses=1]
+ %tmp.899 = load i32* %tmp.897 ; <i32> [#uses=1]
+ store i32 %tmp.899, i32* null
+ ret i32 0
loopexit.2: ; preds = %shortcirc_next.4
- ret uint 0
+ ret i32 0
endif.45: ; preds = %then.44
- ret uint 0
+ ret i32 0
endif.44: ; preds = %then.43
- ret uint 0
+ ret i32 0
endif.43: ; preds = %label.10
- ret uint 0
+ ret i32 0
label.11: ; preds = %no_exit.1
- ret uint 0
+ ret i32 0
-label.17: ; preds = %no_exit.1, %no_exit.1, %no_exit.1, %no_exit.1, %no_exit.1, %no_exit.1
- br bool false, label %then.53, label %shortcirc_next.7
+label.17: ; preds = %no_exit.1
+ br i1 false, label %then.53, label %shortcirc_next.7
shortcirc_next.7: ; preds = %label.17
- br bool false, label %then.53, label %shortcirc_next.8
+ br i1 false, label %then.53, label %shortcirc_next.8
shortcirc_next.8: ; preds = %shortcirc_next.7
- ret uint 0
+ ret i32 0
then.53: ; preds = %shortcirc_next.7, %label.17
- %SubArrays.8 = phi uint* [ %SubArrays.10, %shortcirc_next.7 ], [ %SubArrays.10, %label.17 ] ; <uint*> [#uses=5]
- %tmp.1023 = load uint* null ; <uint> [#uses=1]
- switch uint %tmp.1023, label %loopentry.1 []
+ %SubArrays.8 = phi i32* [ %SubArrays.10, %shortcirc_next.7 ], [ %SubArrays.10, %label.17 ] ; <i32*> [#uses=1]
+ %tmp.1023 = load i32* null ; <i32> [#uses=1]
+ switch i32 %tmp.1023, label %loopentry.1 [
+ ]
loopexit.0: ; preds = %loopentry.0
- ret uint 0
+ ret i32 0
else.2: ; preds = %then.11
- ret uint 0
+ ret i32 0
}