brintos

brintos / llvm-project-archived public Read only

0
0
Text · 560 B · e1a5b4f Raw
22 lines · plain
1; RUN: opt < %s -passes='require<domtree>,break-crit-edges,print<domtree>' -disable-output 2>&1| FileCheck %s2; PR9323 4; CHECK: [3] %brtrue {{{[0-9]+}},{{[0-9]+}}}5 6declare void @use1(i32)7 8define void @f(i32 %i, i1 %c) {9entry:10	%A = icmp eq i32 %i, 0		; <i1> [#uses=1]11	br i1 %A, label %brtrue, label %brfalse12 13brtrue:		; preds = %brtrue, %entry14	%B = phi i1 [ true, %brtrue ], [ false, %entry ]		; <i1> [#uses=1]15	call void @use1( i32 %i )16	br i1 %B, label %brtrue, label %brfalse17 18brfalse:		; preds = %brtrue, %entry19	call void @use1( i32 %i )20	ret void21}22