1 ; RUN: opt < %s -passes=lcssa,verify -S -o /dev/null
3 ; This bugpoint reduced test case used to assert when removing unused PHI nodes.
4 ; Just verify that we do not assert/crash.
11 %value = phi i16 [ 0, %entry ], [ undef, %gazonk ]
12 br i1 undef, label %gazink, label %qqq
15 br i1 undef, label %gazonk, label %infinite.loop.pred
18 br i1 undef, label %exit1, label %gazank
21 br i1 undef, label %www, label %exit2
24 br i1 undef, label %qqq, label %foo.pred
30 br i1 undef, label %bar, label %exit1.pred
33 br i1 undef, label %foo, label %exit2.pred
36 br i1 undef, label %foo, label %exit2.pred
51 br label %infinite.loop
54 %dead = phi i16 [ %value, %infinite.loop.pred ], [ 0, %infinite.loop ]
55 br label %infinite.loop