1 ; RUN: opt < %s -disable-output -passes=print-profile-summary -S 2>&1 | FileCheck %s 2 3 define void @f1() !prof !20 { 4 ; CHECK-LABEL: f1 :hot 5 6 ret void 7 } 8 9 define void @f2() !prof !21 { 10 ; CHECK-LABEL: f2 :cold 11 12 ret void 13 } 14 15 define void @f3() !prof !22 { 16 ; CHECK-LABEL: f3 17 18 ret void 19 } 20 21 !llvm.module.flags = !{!1} 22 !20 = !{!"function_entry_count", i64 400} 23 !21 = !{!"function_entry_count", i64 1} 24 !22 = !{!"function_entry_count", i64 100} 25 26 !1 = !{i32 1, !"ProfileSummary", !2} 27 !2 = !{!3, !4, !5, !6, !7, !8, !9, !10} 28 !3 = !{!"ProfileFormat", !"InstrProf"} 29 !4 = !{!"TotalCount", i64 10000} 30 !5 = !{!"MaxCount", i64 10} 31 !6 = !{!"MaxInternalCount", i64 1} 32 !7 = !{!"MaxFunctionCount", i64 1000} 33 !8 = !{!"NumCounts", i64 3} 34 !9 = !{!"NumFunctions", i64 3} 35 !10 = !{!"DetailedSummary", !11} 36 !11 = !{!12, !13, !14} 37 !12 = !{i32 10000, i64 100, i32 1} 38 !13 = !{i32 999000, i64 100, i32 1} 39 !14 = !{i32 999999, i64 1, i32 2} 40