blob: 36cd493fc17431be6e5ed53bf92a2317d73bb19a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
; RUN: llvm-upgrade < %s | llvm-as | opt -ipconstprop -instcombine | \
; RUN: llvm-dis | grep {ret i1 true}
implementation
internal int %foo(bool %C) {
br bool %C, label %T, label %F
T:
ret int 52
F:
ret int 52
}
bool %caller(bool %C) {
%X = call int %foo(bool %C)
%Y = setne int %X, 0
ret bool %Y
}
|