1 ; RUN: opt < %s -lcssa -S | FileCheck %s
9 ; Test to ensure that when there are multiple exit blocks, PHI nodes are
10 ; only inserted by LCSSA when there is a use dominated by a given exit
13 declare void @printf(i32 %i)
15 define i32 @unused_phis() nounwind {
20 %i = phi i32 [0, %entry], [1, %then2]
21 br i1 undef, label %exit1, label %then1
24 br i1 undef, label %exit2, label %then2
27 br i1 undef, label %exit3, label %loop
30 call void @printf(i32 %i)