mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 15:32:52 +01:00
f99a429a12
llvm-svn: 28214
13 lines
242 B
LLVM
13 lines
242 B
LLVM
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret int %A'
|
|
|
|
int %test(int %A) {
|
|
%X = or bool false, false
|
|
br bool %X, label %T, label %C
|
|
T:
|
|
%B = add int %A, 1
|
|
br label %C
|
|
C:
|
|
%C = phi int [%B, %T], [%A, %0]
|
|
ret int %C
|
|
}
|