1 ; RUN: opt < %s -analyze -block-freq | FileCheck %s
2 ; RUN: opt < %s -analyze -lazy-block-freq | FileCheck %s
3 ; RUN: opt < %s -passes='print<block-freq>' -disable-output 2>&1 | FileCheck %s
6 ; CHECK-LABEL: Printing analysis {{.*}} for function 'test1':
7 ; CHECK-NEXT: block-frequency-info: test1
8 ; CHECK-NEXT: entry: float = 1.0, int = [[ENTRY:[0-9]+]]
12 ; CHECK-NEXT: loop: float = 32.0
14 switch i32 undef, label %loop [
19 ; CHECK-NEXT: return: float = 1.0