1 ; RUN: llc < %s -mtriple=arm64-apple-ios7.0 -pass-remarks-analysis=asm-printer \
2 ; RUN: -verify-machineinstrs \
3 ; RUN: -pass-remarks-with-hotness=1 -asm-verbose=0 \
4 ; RUN: -debug-only=lazy-machine-block-freq,block-freq \
5 ; RUN: -debug-pass=Executions 2>&1 | FileCheck %s -check-prefix=HOTNESS
7 ; RUN: llc < %s -mtriple=arm64-apple-ios7.0 -pass-remarks-analysis=asm-printer \
8 ; RUN: -verify-machineinstrs \
9 ; RUN: -pass-remarks-with-hotness=0 -asm-verbose=0 \
10 ; RUN: -debug-only=lazy-machine-block-freq,block-freq \
11 ; RUN: -debug-pass=Executions 2>&1 | FileCheck %s -check-prefix=NO_HOTNESS
16 ; Verify that we don't new populate MachineBFI for passes that already use
17 ; MBFI, e.g. GreedyRegAlloc. (This hard-codes the previous pass to the
18 ; GreedyRegAlloc, please adjust accordingly.)
20 ; HOTNESS: Executing Pass 'Spill Code Placement Analysis'
21 ; HOTNESS-NEXT: Executing Pass 'Lazy Machine Block Frequency Analysis'
22 ; HOTNESS-NEXT: Executing Pass 'Machine Optimization Remark Emitter'
23 ; HOTNESS-NEXT: MachineBlockFrequencyInfo is available
24 ; HOTNESS-NEXT: Executing Pass 'Greedy Register Allocator'
27 ; Verify that we only populate MachineBFI on behalf of ORE when hotness is
28 ; requested. (This hard-codes the previous pass to the Assembly Printer,
29 ; please adjust accordingly.)
31 ; HOTNESS: Freeing Pass 'Machine Outliner'
32 ; HOTNESS-NEXT: Executing Pass 'Function Pass Manager'
33 ; HOTNESS-NEXT: Executing Pass 'Verify generated machine code'
34 ; HOTNESS-NEXT: Freeing Pass 'Verify generated machine code'
35 ; HOTNESS-NEXT: Executing Pass 'Lazy Machine Block Frequency Analysis'
36 ; HOTNESS-NEXT: Executing Pass 'Machine Optimization Remark Emitter'
37 ; HOTNESS-NEXT: Building MachineBlockFrequencyInfo on the fly
38 ; HOTNESS-NEXT: Building LoopInfo on the fly
39 ; HOTNESS-NEXT: Building DominatorTree on the fly
40 ; HOTNESS-NOT: Executing Pass
41 ; HOTNESS: block-frequency: empty_func
42 ; HOTNESS-NOT: Executing Pass
43 ; HOTNESS: Executing Pass 'AArch64 Assembly Printer'
45 ; HOTNESS: arm64-summary-remarks.ll:5:0: 1 instructions in function (hotness: 33)
48 ; NO_HOTNESS: Freeing Pass 'Machine Outliner'
49 ; NO_HOTNESS-NEXT: Executing Pass 'Function Pass Manager'
50 ; NO_HOTNESS-NEXT: Executing Pass 'Verify generated machine code'
51 ; NO_HOTNESS-NEXT: Freeing Pass 'Verify generated machine code'
52 ; NO_HOTNESS-NEXT: Executing Pass 'Lazy Machine Block Frequency Analysis'
53 ; NO_HOTNESS-NEXT: Executing Pass 'Machine Optimization Remark Emitter'
54 ; NO_HOTNESS-NEXT: Executing Pass 'AArch64 Assembly Printer'
56 ; NO_HOTNESS: arm64-summary-remarks.ll:5:0: 1 instructions in function{{$}}
58 define void @empty_func() nounwind ssp !dbg !3 !prof !4 {
63 !llvm.module.flags = !{!2}
65 !0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1)
66 !1 = !DIFile(filename: "arm64-summary-remarks.ll", directory: "")
67 !2 = !{i32 2, !"Debug Info Version", i32 3}
68 !3 = distinct !DISubprogram(name: "empty_func", scope: !1, file: !1, line: 5, scopeLine: 5, unit: !0)
69 !4 = !{!"function_entry_count", i64 33}