InstCombine: form shuffles from wider range of insert/extractelements
[oota-llvm.git] / test / Transforms / InstCombine / 2003-08-12-AllocaNonNull.ll
index 335b8846943afbadfc5bf468bf18bb18c02a9900..bb9a8181ccd460396cc43bacbbe023643adfc200 100644 (file)
@@ -1,22 +1,21 @@
-; This testcase can be simplified by "realizing" that alloca can never return 
+; This testcase can be simplified by "realizing" that alloca can never return
 ; null.
-; RUN: as < %s | opt -instcombine -simplifycfg | dis | not grep 'br '
+; RUN: opt < %s -instcombine -simplifycfg -S | FileCheck %s
+; CHECK-NOT: 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
 }