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