mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
c49d7dd886
Upgrade tests to work with new llvm.exp version of llvm_runtest. llvm-svn: 36013
24 lines
646 B
LLVM
24 lines
646 B
LLVM
; This testcase can be simplified by "realizing" that alloca can never return
|
|
; null.
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -simplifycfg | \
|
|
; RUN: llvm-dis | not grep br
|
|
|
|
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
|
|
}
|
|
|