summaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.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/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.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/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll')
-rw-r--r--test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll b/test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll
index cd76681a10..39be6c4041 100644
--- a/test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll
+++ b/test/Transforms/GlobalOpt/2006-11-01-ShrinkGlobalPhiCrash.ll
@@ -1,33 +1,33 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt -disable-output
- %struct._list = type { int*, %struct._list* }
- %struct._play = type { int, int*, %struct._list*, %struct._play* }
-%nrow = internal global int 0 ; <int*> [#uses=2]
+; RUN: llvm-as < %s | opt -globalopt -disable-output
-implementation ; Functions:
+ %struct._list = type { i32*, %struct._list* }
+ %struct._play = type { i32, i32*, %struct._list*, %struct._play* }
+@nrow = internal global i32 0 ; <i32*> [#uses=2]
-void %make_play() {
+define void @make_play() {
entry:
- br label %cond_true16.i
+ br label %cond_true16.i
-cond_true16.i: ; preds = %cond_true16.i, %entry
- %low.0.in.i.0 = phi int* [ %nrow, %entry ], [ null, %cond_true16.i ] ; <int*> [#uses=1]
- %low.0.i = load int* %low.0.in.i.0 ; <int> [#uses=0]
- br label %cond_true16.i
+cond_true16.i: ; preds = %cond_true16.i, %entry
+ %low.0.in.i.0 = phi i32* [ @nrow, %entry ], [ null, %cond_true16.i ] ; <i32*> [#uses=1]
+ %low.0.i = load i32* %low.0.in.i.0 ; <i32> [#uses=0]
+ br label %cond_true16.i
}
-void %make_wanted() {
+define void @make_wanted() {
entry:
- unreachable
+ unreachable
}
-void %get_good_move() {
+define void @get_good_move() {
entry:
- ret void
+ ret void
}
-void %main() {
+define void @main() {
entry:
- store int 8, int* %nrow
- tail call void %make_play( )
- ret void
+ store i32 8, i32* @nrow
+ tail call void @make_play( )
+ ret void
}
+