2003-08-12 16:58:08 +02:00
|
|
|
; This testcase can be simplified by "realizing" that alloca can never return
|
|
|
|
; null.
|
2006-12-02 05:23:10 +01:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -simplifycfg | llvm-dis | not grep 'br '
|
2003-08-12 16:58:08 +02:00
|
|
|
|
|
|
|
implementation ; Functions:
|
|
|
|
|
|
|
|
declare int %bitmap_clear(...)
|
|
|
|
|
|
|
|
int %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
|
|
|
|
|
|
|
|
then:
|
|
|
|
%tmp.4 = call int (...)* %bitmap_clear( int* %live_head ) ; <int> [#uses=0]
|
|
|
|
br label %UnifiedExitNode
|
|
|
|
|
|
|
|
UnifiedExitNode:
|
|
|
|
ret int 0
|
|
|
|
}
|
|
|
|
|