1 ; RUN: opt < %s -analyze -block-freq | FileCheck %s
2 ; RUN: opt < %s -passes='print<block-freq>' -disable-output 2>&1 | FileCheck %s
4 define void @double_backedge(i1 %x) {
5 ; CHECK-LABEL: Printing analysis {{.*}} for function 'double_backedge':
6 ; CHECK-NEXT: block-frequency-info: double_backedge
8 ; CHECK-NEXT: entry: float = 1.0, int = [[ENTRY:[0-9]+]]
12 ; CHECK-NEXT: loop: float = 10.0,
13 br i1 %x, label %exit, label %loop.1, !prof !0
16 ; CHECK-NEXT: loop.1: float = 9.0,
17 br i1 %x, label %loop, label %loop.2, !prof !1
20 ; CHECK-NEXT: loop.2: float = 5.0,
24 ; CHECK-NEXT: exit: float = 1.0, int = [[ENTRY]]
27 !0 = !{!"branch_weights", i32 1, i32 9}
28 !1 = !{!"branch_weights", i32 4, i32 5}