1 ; RUN: opt < %s -domtree -analyze | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-OLDPM
2 ; RUN: opt < %s -disable-output -passes='print<domtree>' 2>&1 | FileCheck %s -check-prefix=CHECK -check-prefix=CHECK-NEWPM
5 ; CHECK-OLDPM-LABEL: 'Dominator Tree Construction' for function 'test1':
6 ; CHECK-NEWPM-LABEL: DominatorTree for function: test1
15 br i1 undef, label %a, label %b
24 br i1 undef, label %d, label %e
33 define void @test2() {
34 ; CHECK-OLDPM-LABEL: 'Dominator Tree Construction' for function 'test2':
35 ; CHECK-NEWPM-LABEL: DominatorTree for function: test2
41 ; CHECK-NEXT: [5] %ret
50 br i1 undef, label %a, label %c
53 br i1 undef, label %d, label %ret
56 br i1 undef, label %a, label %ret