mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
dcd188d33f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47110 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
506 B
LLVM
21 lines
506 B
LLVM
; RUN: llvm-as < %s | opt -domtree -break-crit-edges -analyze \
|
|
; RUN: -domtree | grep {3.*%brtrue }
|
|
; PR932
|
|
|
|
declare void @use1(i32)
|
|
|
|
define void @f(i32 %i, i1 %c) {
|
|
entry:
|
|
%A = icmp eq i32 %i, 0 ; <i1> [#uses=1]
|
|
br i1 %A, label %brtrue, label %brfalse
|
|
|
|
brtrue: ; preds = %brtrue, %entry
|
|
%B = phi i1 [ true, %brtrue ], [ false, %entry ] ; <i1> [#uses=1]
|
|
call void @use1( i32 %i )
|
|
br i1 %B, label %brtrue, label %brfalse
|
|
|
|
brfalse: ; preds = %brtrue, %entry
|
|
call void @use1( i32 %i )
|
|
ret void
|
|
}
|