mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 15:32:52 +01:00
394f956177
llvm-svn: 12803
16 lines
365 B
LLVM
16 lines
365 B
LLVM
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep br
|
|
|
|
int %test(bool %C, int %V1, int %V2) {
|
|
entry:
|
|
br bool %C, label %then, label %Cont
|
|
|
|
then:
|
|
%V3 = or int %V2, %V1
|
|
br label %Cont
|
|
Cont:
|
|
%V4 = phi int [%V1, %entry], [%V3, %then]
|
|
call int %test(bool false, int 0, int 0) ;; don't fold into preds
|
|
ret int %V1
|
|
}
|
|
|