mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
380 B
LLVM
16 lines
380 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | 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
|
|
}
|
|
|