aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.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/InstCombine/2003-08-12-AllocaNonNull.ll
parentab3b77834c9232e4c13acb29afe1920b97c5a20b (diff)
downloadexternal_llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.zip
external_llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.gz
external_llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.bz2
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/InstCombine/2003-08-12-AllocaNonNull.ll')
-rw-r--r--test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll22
1 files changed, 10 insertions, 12 deletions
diff --git a/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll b/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll
index 81594db..209ab1b 100644
--- a/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll
+++ b/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll
@@ -1,23 +1,21 @@
; This testcase can be simplified by "realizing" that alloca can never return
; null.
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -simplifycfg | \
+; RUN: llvm-as < %s | opt -instcombine -simplifycfg | \
; RUN: llvm-dis | not grep br
-implementation ; Functions:
+declare i32 @bitmap_clear(...)
-declare int %bitmap_clear(...)
-
-int %oof() {
+define i32 @oof() {
entry:
- %live_head = alloca int ; <int*> [#uses=2]
- %tmp.1 = setne int* %live_head, null ; <bool> [#uses=1]
- br bool %tmp.1, label %then, label %UnifiedExitNode
+ %live_head = alloca i32 ; <i32*> [#uses=2]
+ %tmp.1 = icmp ne i32* %live_head, null ; <i1> [#uses=1]
+ br i1 %tmp.1, label %then, label %UnifiedExitNode
-then:
- %tmp.4 = call int (...)* %bitmap_clear( int* %live_head ) ; <int> [#uses=0]
+then: ; preds = %entry
+ %tmp.4 = call i32 (...)* @bitmap_clear( i32* %live_head ) ; <i32> [#uses=0]
br label %UnifiedExitNode
-UnifiedExitNode:
- ret int 0
+UnifiedExitNode: ; preds = %then, %entry
+ ret i32 0
}