mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
b477f7dd65
Upgrade to use new Tcl exec based test harness. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36066 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
554 B
LLVM
22 lines
554 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -domtree -break-crit-edges -analyze \
|
|
; RUN: -domtree | grep {3.*%brtrue$}
|
|
; PR932
|
|
implementation ; Functions:
|
|
|
|
declare void %use1(int)
|
|
|
|
void %f(int %i, bool %c) {
|
|
entry:
|
|
%A = seteq int %i, 0 ; <bool> [#uses=1]
|
|
br bool %A, label %brtrue, label %brfalse
|
|
|
|
brtrue: ; preds = %brtrue, %entry
|
|
%B = phi bool [ true, %brtrue ], [ false, %entry ] ; <bool> [#uses=1]
|
|
call void %use1( int %i )
|
|
br bool %B, label %brtrue, label %brfalse
|
|
|
|
brfalse: ; preds = %brtrue, %entry
|
|
call void %use1( int %i )
|
|
ret void
|
|
}
|