1 ; RUN: opt -newgvn -S -o - %s | FileCheck %s
2 ; RUN: opt -passes=newgvn -S -o - %s | FileCheck %s
4 ; If a branch has two identical successors, we cannot declare either dead.
6 define void @widget(i1 %p) {
11 %t1 = phi i64 [ 0, %entry ], [ %t5, %bb7 ]
13 %t3 = icmp ult i64 0, %t2
14 br i1 %t3, label %bb3, label %bb4
21 ; CHECK-NOT: phi {{.*}} undef
22 %foo = phi i64 [ %t4, %bb3 ], [ 0, %bb2 ]
23 br i1 %p, label %bb5, label %bb6
26 br i1 true, label %bb7, label %bb7
29 br i1 true, label %bb7, label %bb7
33 br i1 %p, label %bb2, label %bb8