1target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 2target triple = "x86_64-unknown-linux-gnu" 3 4$__llvm_profile_filename = comdat any 5$__llvm_profile_raw_version = comdat any 6 7@odd = common dso_local global i32 0, align 4 8@even = common dso_local global i32 0, align 4 9@__llvm_profile_filename = constant [25 x i8] c"pass2/default_%m.profraw\00", comdat 10@__llvm_profile_raw_version = constant i64 216172782113783812, comdat 11 12define dso_local void @bar(i32 %n) !prof !29 { 13entry: 14 %call = tail call fastcc i32 @cond(i32 %n) 15 %tobool = icmp eq i32 %call, 0 16 br i1 %tobool, label %if.else, label %if.then, !prof !30 17 18if.then: 19 %0 = load i32, i32* @odd, align 4 20 %inc = add i32 %0, 1 21 store i32 %inc, i32* @odd, align 4 22 br label %if.end 23 24if.else: 25 %1 = load i32, i32* @even, align 4 26 %inc1 = add i32 %1, 1 27 store i32 %inc1, i32* @even, align 4 28 br label %if.end 29 30if.end: 31 ret void 32} 33 34define internal fastcc i32 @cond(i32 %i) #1 !prof !29 !PGOFuncName !35 { 35entry: 36 %rem = srem i32 %i, 2 37 ret i32 %rem 38} 39 40attributes #1 = { inlinehint noinline } 41 42!llvm.module.flags = !{!0, !1} 43 44!0 = !{i32 1, !"wchar_size", i32 4} 45!1 = !{i32 1, !"ProfileSummary", !2} 46!2 = !{!3, !4, !5, !6, !7, !8, !9, !10} 47!3 = !{!"ProfileFormat", !"InstrProf"} 48!4 = !{!"TotalCount", i64 500002} 49!5 = !{!"MaxCount", i64 200000} 50!6 = !{!"MaxInternalCount", i64 100000} 51!7 = !{!"MaxFunctionCount", i64 200000} 52!8 = !{!"NumCounts", i64 6} 53!9 = !{!"NumFunctions", i64 4} 54!10 = !{!"DetailedSummary", !11} 55!11 = !{!12, !13, !14, !15, !16, !17, !18, !19, !20, !21, !22, !23, !24, !25, !26, !27} 56!12 = !{i32 10000, i64 200000, i32 1} 57!13 = !{i32 100000, i64 200000, i32 1} 58!14 = !{i32 200000, i64 200000, i32 1} 59!15 = !{i32 300000, i64 200000, i32 1} 60!16 = !{i32 400000, i64 200000, i32 1} 61!17 = !{i32 500000, i64 100000, i32 4} 62!18 = !{i32 600000, i64 100000, i32 4} 63!19 = !{i32 700000, i64 100000, i32 4} 64!20 = !{i32 800000, i64 100000, i32 4} 65!21 = !{i32 900000, i64 100000, i32 4} 66!22 = !{i32 950000, i64 100000, i32 4} 67!23 = !{i32 990000, i64 100000, i32 4} 68!24 = !{i32 999000, i64 100000, i32 4} 69!25 = !{i32 999900, i64 100000, i32 4} 70!26 = !{i32 999990, i64 100000, i32 4} 71!27 = !{i32 999999, i64 1, i32 6} 72!29 = !{!"function_entry_count", i64 200000} 73!30 = !{!"branch_weights", i32 100000, i32 100000} 74!35 = !{!"cspgo_bar.c:cond"} 75