xref: /llvm-project/llvm/test/Transforms/SampleProfile/profile-context-tracker-debug.ll (revision 3e39cfe5b4af7a8496049f623cfce177dc1903d6)
16b989a17SWenlei He; REQUIRES: asserts
26b989a17SWenlei He; Test for CSSPGO's SampleContextTracker to make sure context profile tree is promoted and merged properly
36b989a17SWenlei He; based on inline decision, so post inline counts are accurate.
46b989a17SWenlei He
51d54aa2eSJinsong Ji;; The order of nodes within Context Profile Tree depends on the implmementation of std::hash<std::string>.
6ac955452SHongtao Yu;; Using check-dag instead of check-next.
71d54aa2eSJinsong Ji
81d54aa2eSJinsong Ji
96b989a17SWenlei He; Note that we need new pass manager to enable top-down processing for sample profile loader
106bae5973SWenlei He; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-inline-size -sample-profile-cold-inline-threshold=200 -debug-only=sample-context-tracker -o /dev/null 2>&1 | FileCheck %s --check-prefix=INLINE-ALL
116bae5973SWenlei He; RUN: opt < %s -passes=sample-profile -sample-profile-file=%S/Inputs/profile-context-tracker.prof -sample-profile-prioritized-inline=0 -sample-profile-inline-size=0 -debug-only=sample-context-tracker -o /dev/null 2>&1 | FileCheck %s --check-prefix=INLINE-HOT
126b989a17SWenlei He
136b989a17SWenlei He
146bae5973SWenlei He; Test we inlined the following in top-down order and promot rest not inlined context profile into base profile
156b989a17SWenlei He;   main:3 @ _Z5funcAi
166b989a17SWenlei He;   main:3 @ _Z5funcAi:1 @ _Z8funcLeafi
176b989a17SWenlei He;   _Z5funcBi:1 @ _Z8funcLeafi
186b989a17SWenlei He; INLINE-ALL:      Getting base profile for function: main
196b989a17SWenlei He; INLINE-ALL-NEXT:   Merging context profile into base profile: main
206b989a17SWenlei He; INLINE-ALL-NEXT:   Found context tree root to promote: external:12 @ main
216b989a17SWenlei He; INLINE-ALL-NEXT:   Context promoted and merged to: main
226b989a17SWenlei He; INLINE-ALL-NEXT: Getting callee context for instr:   %call = tail call i32 @_Z5funcBi
236b989a17SWenlei He; INLINE-ALL-NEXT:   Callee context found: main:3.1 @ _Z5funcBi
246b989a17SWenlei He; INLINE-ALL-NEXT: Getting callee context for instr:   %call1 = tail call i32 @_Z5funcAi
256b989a17SWenlei He; INLINE-ALL-NEXT:   Callee context found: main:3 @ _Z5funcAi
266b989a17SWenlei He; INLINE-ALL-NEXT: Marking context profile as inlined: main:3 @ _Z5funcAi
276b989a17SWenlei He; INLINE-ALL-NEXT: Getting callee context for instr:   %call.i = tail call i32 @_Z8funcLeafi
286b989a17SWenlei He; INLINE-ALL-NEXT:   Callee context found: main:3 @ _Z5funcAi:1 @ _Z8funcLeafi
296b989a17SWenlei He; INLINE-ALL-NEXT: Marking context profile as inlined: main:3 @ _Z5funcAi:1 @ _Z8funcLeafi
30*3e39cfe5SArthur Eubanks; INLINE-ALL-NEXT: Getting callee context for instr:   %call.i2 = tail call i32 @_Z3fibi
316b989a17SWenlei He; INLINE-ALL-NEXT: Getting callee context for instr:   %call5.i = tail call i32 @_Z3fibi
32ac955452SHongtao Yu; INLINE-ALL-DAG:  Getting base profile for function: _Z5funcAi
33ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Merging context profile into base profile: _Z5funcAi
34ac955452SHongtao Yu; INLINE-ALL-DAG:  Getting base profile for function: _Z5funcBi
35ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Merging context profile into base profile: _Z5funcBi
36ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Found context tree root to promote: external:10 @ _Z5funcBi
37ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Context promoted to: _Z5funcBi
38b9db7036SHongtao Yu; INLINE-ALL-DAG-NEXT:   Found context tree root to promote: externalA:17 @ _Z5funcBi
39b9db7036SHongtao Yu; INLINE-ALL-DAG-NEXT:   Context promoted and merged to: _Z5funcBi
40ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Found context tree root to promote: main:3.1 @ _Z5funcBi
41ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Context promoted and merged to: _Z5funcBi
42ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Context promoted to: _Z5funcBi:1 @ _Z8funcLeafi
43ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Getting callee context for instr:   %call = tail call i32 @_Z8funcLeafi
44ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Callee context found: _Z5funcBi:1 @ _Z8funcLeafi
45ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Marking context profile as inlined: _Z5funcBi:1 @ _Z8funcLeafi
46ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Getting callee context for instr:   %call.i = tail call i32 @_Z3fibi
47ac955452SHongtao Yu; INLINE-ALL-DAG-NEXT:   Getting callee context for instr:   %call5.i = tail call i32 @_Z3fibi
48ac955452SHongtao Yu; INLINE-ALL:     Getting base profile for function: _Z8funcLeafi
496b989a17SWenlei He; INLINE-ALL-NEXT:   Merging context profile into base profile: _Z8funcLeafi
506b989a17SWenlei He
516bae5973SWenlei He; Test we inlined the following in top-down order and promot rest not inlined context profile into base profile
526b989a17SWenlei He;   _Z5funcAi:1 @ _Z8funcLeafi
536b989a17SWenlei He;   _Z5funcBi:1 @ _Z8funcLeafi
546b989a17SWenlei He; INLINE-HOT:      Getting base profile for function: main
556b989a17SWenlei He; INLINE-HOT-NEXT:   Merging context profile into base profile: main
566b989a17SWenlei He; INLINE-HOT-NEXT:   Found context tree root to promote: external:12 @ main
576b989a17SWenlei He; INLINE-HOT-NEXT:   Context promoted and merged to: main
586bae5973SWenlei He; INLINE-HOT-NEXT: Getting callee context for instr:   %call = tail call i32 @_Z5funcBi
596b989a17SWenlei He; INLINE-HOT-NEXT:   Callee context found: main:3.1 @ _Z5funcBi
606bae5973SWenlei He; INLINE-HOT-NEXT: Getting callee context for instr:   %call1 = tail call i32 @_Z5funcAi
616b989a17SWenlei He; INLINE-HOT-NEXT:   Callee context found: main:3 @ _Z5funcAi
62ac955452SHongtao Yu; INLINE-HOT-DAG: Getting base profile for function: _Z5funcAi
63ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Merging context profile into base profile: _Z5funcAi
64ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Found context tree root to promote: main:3 @ _Z5funcAi
65ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Context promoted to: _Z5funcAi
66ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Context promoted to: _Z5funcAi:1 @ _Z8funcLeafi
67ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Getting callee context for instr:   %call = tail call i32 @_Z8funcLeafi(i32 %add), !dbg !50
68ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Callee context found: _Z5funcAi:1 @ _Z8funcLeafi
69ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Marking context profile as inlined: _Z5funcAi:1 @ _Z8funcLeafi
70ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Getting callee context for instr:   %call.i = tail call i32 @_Z3fibi(i32 %tmp.i) #2, !dbg !62
71ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Getting callee context for instr:   %call5.i = tail call i32 @_Z3fibi(i32 %tmp1.i) #2, !dbg !69
72ac955452SHongtao Yu; INLINE-HOT-DAG: Getting base profile for function: _Z5funcBi
73ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Merging context profile into base profile: _Z5funcBi
74ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Found context tree root to promote: external:10 @ _Z5funcBi
75ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Context promoted to: _Z5funcBi
76b9db7036SHongtao Yu; INLINE-HOT-DAG-NEXT:   Found context tree root to promote: externalA:17 @ _Z5funcBi
77b9db7036SHongtao Yu; INLINE-HOT-DAG-NEXT:   Context promoted and merged to: _Z5funcBi
78ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Found context tree root to promote: main:3.1 @ _Z5funcBi
79ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Context promoted and merged to: _Z5funcBi
80ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Context promoted to: _Z5funcBi:1 @ _Z8funcLeafi
81ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Getting callee context for instr:   %call = tail call i32 @_Z8funcLeafi
82ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Callee context found: _Z5funcBi:1 @ _Z8funcLeafi
83ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Marking context profile as inlined: _Z5funcBi:1 @ _Z8funcLeafi
84ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Getting callee context for instr:   %call.i = tail call i32 @_Z3fibi
85ac955452SHongtao Yu; INLINE-HOT-DAG-NEXT:   Getting callee context for instr:   %call5.i = tail call i32 @_Z3fibi
86ac955452SHongtao Yu; INLINE-HOT:      Getting base profile for function: _Z8funcLeafi
876b989a17SWenlei He; INLINE-HOT-NEXT:   Merging context profile into base profile: _Z8funcLeafi
886b989a17SWenlei He
896b989a17SWenlei He
906b989a17SWenlei He@factor = dso_local global i32 3, align 4, !dbg !0
916b989a17SWenlei He
926b989a17SWenlei Hedefine dso_local i32 @main() local_unnamed_addr #0 !dbg !18 {
936b989a17SWenlei Heentry:
946b989a17SWenlei He  br label %for.body, !dbg !25
956b989a17SWenlei He
966b989a17SWenlei Hefor.cond.cleanup:                                 ; preds = %for.body
976b989a17SWenlei He  ret i32 %add3, !dbg !27
986b989a17SWenlei He
996b989a17SWenlei Hefor.body:                                         ; preds = %for.body, %entry
1006b989a17SWenlei He  %x.011 = phi i32 [ 300000, %entry ], [ %dec, %for.body ]
1016b989a17SWenlei He  %r.010 = phi i32 [ 0, %entry ], [ %add3, %for.body ]
1026b989a17SWenlei He  %call = tail call i32 @_Z5funcBi(i32 %x.011), !dbg !32
1036b989a17SWenlei He  %add = add nuw nsw i32 %x.011, 1, !dbg !31
1046b989a17SWenlei He  %call1 = tail call i32 @_Z5funcAi(i32 %add), !dbg !28
1056b989a17SWenlei He  %add2 = add i32 %call, %r.010, !dbg !34
1066b989a17SWenlei He  %add3 = add i32 %add2, %call1, !dbg !35
1076b989a17SWenlei He  %dec = add nsw i32 %x.011, -1, !dbg !36
1086b989a17SWenlei He  %cmp = icmp eq i32 %x.011, 0, !dbg !38
1096b989a17SWenlei He  br i1 %cmp, label %for.cond.cleanup, label %for.body, !dbg !25
1106b989a17SWenlei He}
1116b989a17SWenlei He
1126b989a17SWenlei Hedefine dso_local i32 @_Z5funcAi(i32 %x) local_unnamed_addr #1 !dbg !40 {
1136b989a17SWenlei Heentry:
1146b989a17SWenlei He  %add = add nsw i32 %x, 100000, !dbg !44
1156b989a17SWenlei He  %call = tail call i32 @_Z8funcLeafi(i32 %add), !dbg !45
1166b989a17SWenlei He  ret i32 %call, !dbg !46
1176b989a17SWenlei He}
1186b989a17SWenlei He
1196b989a17SWenlei Hedefine dso_local i32 @_Z8funcLeafi(i32 %x) local_unnamed_addr #1 !dbg !54 {
1206b989a17SWenlei Heentry:
1216b989a17SWenlei He  %cmp = icmp sgt i32 %x, 0, !dbg !57
1226b989a17SWenlei He  br i1 %cmp, label %while.body, label %while.cond2.preheader, !dbg !59
1236b989a17SWenlei He
1246b989a17SWenlei Hewhile.cond2.preheader:                            ; preds = %entry
1256b989a17SWenlei He  %cmp313 = icmp slt i32 %x, 0, !dbg !60
1266b989a17SWenlei He  br i1 %cmp313, label %while.body4, label %if.end, !dbg !63
1276b989a17SWenlei He
1286b989a17SWenlei Hewhile.body:                                       ; preds = %while.body, %entry
1296b989a17SWenlei He  %x.addr.016 = phi i32 [ %sub, %while.body ], [ %x, %entry ]
1300271ae65SFangrui Song  %tmp = load volatile i32, ptr @factor, align 4, !dbg !64
1316b989a17SWenlei He  %call = tail call i32 @_Z3fibi(i32 %tmp), !dbg !67
1326b989a17SWenlei He  %sub = sub nsw i32 %x.addr.016, %call, !dbg !68
1336b989a17SWenlei He  %cmp1 = icmp sgt i32 %sub, 0, !dbg !69
1346b989a17SWenlei He  br i1 %cmp1, label %while.body, label %if.end, !dbg !71
1356b989a17SWenlei He
1366b989a17SWenlei Hewhile.body4:                                      ; preds = %while.body4, %while.cond2.preheader
1376b989a17SWenlei He  %x.addr.114 = phi i32 [ %add, %while.body4 ], [ %x, %while.cond2.preheader ]
1380271ae65SFangrui Song  %tmp1 = load volatile i32, ptr @factor, align 4, !dbg !72
1396b989a17SWenlei He  %call5 = tail call i32 @_Z3fibi(i32 %tmp1), !dbg !74
1406b989a17SWenlei He  %add = add nsw i32 %call5, %x.addr.114, !dbg !75
1416b989a17SWenlei He  %cmp3 = icmp slt i32 %add, 0, !dbg !60
1426b989a17SWenlei He  br i1 %cmp3, label %while.body4, label %if.end, !dbg !63
1436b989a17SWenlei He
1446b989a17SWenlei Heif.end:                                           ; preds = %while.body4, %while.body, %while.cond2.preheader
1456b989a17SWenlei He  %x.addr.2 = phi i32 [ 0, %while.cond2.preheader ], [ %sub, %while.body ], [ %add, %while.body4 ]
1466b989a17SWenlei He  ret i32 %x.addr.2, !dbg !76
1476b989a17SWenlei He}
1486b989a17SWenlei He
1496b989a17SWenlei Hedefine dso_local i32 @_Z5funcBi(i32 %x) local_unnamed_addr #0 !dbg !47 {
1506b989a17SWenlei Heentry:
1516b989a17SWenlei He  %sub = add nsw i32 %x, -100000, !dbg !51
1526b989a17SWenlei He  %call = tail call i32 @_Z8funcLeafi(i32 %sub), !dbg !52
1536b989a17SWenlei He  ret i32 %call, !dbg !53
1546b989a17SWenlei He}
1556b989a17SWenlei He
1566b989a17SWenlei Hedeclare i32 @_Z3fibi(i32)
1576b989a17SWenlei He
1584ab3041aSserge-sans-pailleattributes #0 = { nofree noinline norecurse nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" "use-sample-profile" }
1594ab3041aSserge-sans-pailleattributes #1 = { nofree norecurse nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" "use-sample-profile" }
1606b989a17SWenlei He
1616b989a17SWenlei He!llvm.dbg.cu = !{!2}
1626b989a17SWenlei He!llvm.module.flags = !{!14, !15, !16}
1636b989a17SWenlei He!llvm.ident = !{!17}
1646b989a17SWenlei He
1656b989a17SWenlei He!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
1666b989a17SWenlei He!1 = distinct !DIGlobalVariable(name: "factor", scope: !2, file: !3, line: 21, type: !13, isLocal: false, isDefinition: true)
1676b989a17SWenlei He!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !3, producer: "clang version 11.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !5, globals: !12, splitDebugInlining: false, debugInfoForProfiling: true, nameTableKind: None)
1686b989a17SWenlei He!3 = !DIFile(filename: "merged.cpp", directory: "/local/autofdo")
1696b989a17SWenlei He!4 = !{}
1706b989a17SWenlei He!5 = !{!6, !10, !11}
1716b989a17SWenlei He!6 = !DISubprogram(name: "funcA", linkageName: "_Z5funcAi", scope: !3, file: !3, line: 6, type: !7, flags: DIFlagPrototyped, spFlags: DISPFlagOptimized, retainedNodes: !4)
1726b989a17SWenlei He!7 = !DISubroutineType(types: !8)
1736b989a17SWenlei He!8 = !{!9, !9}
1746b989a17SWenlei He!9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
1756b989a17SWenlei He!10 = !DISubprogram(name: "funcB", linkageName: "_Z5funcBi", scope: !3, file: !3, line: 7, type: !7, flags: DIFlagPrototyped, spFlags: DISPFlagOptimized, retainedNodes: !4)
1766b989a17SWenlei He!11 = !DISubprogram(name: "funcLeaf", linkageName: "_Z8funcLeafi", scope: !3, file: !3, line: 22, type: !7, flags: DIFlagPrototyped, spFlags: DISPFlagOptimized, retainedNodes: !4)
1776b989a17SWenlei He!12 = !{!0}
1786b989a17SWenlei He!13 = !DIDerivedType(tag: DW_TAG_volatile_type, baseType: !9)
1796b989a17SWenlei He!14 = !{i32 7, !"Dwarf Version", i32 4}
1806b989a17SWenlei He!15 = !{i32 2, !"Debug Info Version", i32 3}
1816b989a17SWenlei He!16 = !{i32 1, !"wchar_size", i32 4}
1826b989a17SWenlei He!17 = !{!"clang version 11.0.0"}
1836b989a17SWenlei He!18 = distinct !DISubprogram(name: "main", scope: !3, file: !3, line: 11, type: !19, scopeLine: 11, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !21)
1846b989a17SWenlei He!19 = !DISubroutineType(types: !20)
1856b989a17SWenlei He!20 = !{!9}
1866b989a17SWenlei He!21 = !{!22, !23}
1876b989a17SWenlei He!22 = !DILocalVariable(name: "r", scope: !18, file: !3, line: 12, type: !9)
1886b989a17SWenlei He!23 = !DILocalVariable(name: "x", scope: !24, file: !3, line: 13, type: !9)
1896b989a17SWenlei He!24 = distinct !DILexicalBlock(scope: !18, file: !3, line: 13, column: 3)
1906b989a17SWenlei He!25 = !DILocation(line: 13, column: 3, scope: !26)
1916b989a17SWenlei He!26 = !DILexicalBlockFile(scope: !24, file: !3, discriminator: 2)
1926b989a17SWenlei He!27 = !DILocation(line: 17, column: 3, scope: !18)
1936b989a17SWenlei He!28 = !DILocation(line: 14, column: 10, scope: !29)
1946b989a17SWenlei He!29 = distinct !DILexicalBlock(scope: !30, file: !3, line: 13, column: 37)
1956b989a17SWenlei He!30 = distinct !DILexicalBlock(scope: !24, file: !3, line: 13, column: 3)
1966b989a17SWenlei He!31 = !DILocation(line: 14, column: 29, scope: !29)
1976b989a17SWenlei He!32 = !DILocation(line: 14, column: 21, scope: !33)
1986b989a17SWenlei He!33 = !DILexicalBlockFile(scope: !29, file: !3, discriminator: 2)
1996b989a17SWenlei He!34 = !DILocation(line: 14, column: 19, scope: !29)
2006b989a17SWenlei He!35 = !DILocation(line: 14, column: 7, scope: !29)
2016b989a17SWenlei He!36 = !DILocation(line: 13, column: 33, scope: !37)
2026b989a17SWenlei He!37 = !DILexicalBlockFile(scope: !30, file: !3, discriminator: 6)
2036b989a17SWenlei He!38 = !DILocation(line: 13, column: 26, scope: !39)
2046b989a17SWenlei He!39 = !DILexicalBlockFile(scope: !30, file: !3, discriminator: 2)
2056b989a17SWenlei He!40 = distinct !DISubprogram(name: "funcA", linkageName: "_Z5funcAi", scope: !3, file: !3, line: 26, type: !7, scopeLine: 26, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2)
2066b989a17SWenlei He!44 = !DILocation(line: 27, column: 22, scope: !40)
2076b989a17SWenlei He!45 = !DILocation(line: 27, column: 11, scope: !40)
2086b989a17SWenlei He!46 = !DILocation(line: 29, column: 3, scope: !40)
2096b989a17SWenlei He!47 = distinct !DISubprogram(name: "funcB", linkageName: "_Z5funcBi", scope: !3, file: !3, line: 32, type: !7, scopeLine: 32, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2)
2106b989a17SWenlei He!51 = !DILocation(line: 33, column: 22, scope: !47)
2116b989a17SWenlei He!52 = !DILocation(line: 33, column: 11, scope: !47)
2126b989a17SWenlei He!53 = !DILocation(line: 35, column: 3, scope: !47)
2136b989a17SWenlei He!54 = distinct !DISubprogram(name: "funcLeaf", linkageName: "_Z8funcLeafi", scope: !3, file: !3, line: 48, type: !7, scopeLine: 48, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2)
2146b989a17SWenlei He!57 = !DILocation(line: 49, column: 9, scope: !58)
2156b989a17SWenlei He!58 = distinct !DILexicalBlock(scope: !54, file: !3, line: 49, column: 7)
2166b989a17SWenlei He!59 = !DILocation(line: 49, column: 7, scope: !54)
2176b989a17SWenlei He!60 = !DILocation(line: 58, column: 14, scope: !61)
2186b989a17SWenlei He!61 = !DILexicalBlockFile(scope: !62, file: !3, discriminator: 2)
2196b989a17SWenlei He!62 = distinct !DILexicalBlock(scope: !58, file: !3, line: 56, column: 8)
2206b989a17SWenlei He!63 = !DILocation(line: 58, column: 5, scope: !61)
2216b989a17SWenlei He!64 = !DILocation(line: 52, column: 16, scope: !65)
2226b989a17SWenlei He!65 = distinct !DILexicalBlock(scope: !66, file: !3, line: 51, column: 19)
2236b989a17SWenlei He!66 = distinct !DILexicalBlock(scope: !58, file: !3, line: 49, column: 14)
2246b989a17SWenlei He!67 = !DILocation(line: 52, column: 12, scope: !65)
2256b989a17SWenlei He!68 = !DILocation(line: 52, column: 9, scope: !65)
2266b989a17SWenlei He!69 = !DILocation(line: 51, column: 14, scope: !70)
2276b989a17SWenlei He!70 = !DILexicalBlockFile(scope: !66, file: !3, discriminator: 2)
2286b989a17SWenlei He!71 = !DILocation(line: 51, column: 5, scope: !70)
2296b989a17SWenlei He!72 = !DILocation(line: 59, column: 16, scope: !73)
2306b989a17SWenlei He!73 = distinct !DILexicalBlock(scope: !62, file: !3, line: 58, column: 19)
2316b989a17SWenlei He!74 = !DILocation(line: 59, column: 12, scope: !73)
2326b989a17SWenlei He!75 = !DILocation(line: 59, column: 9, scope: !73)
2336b989a17SWenlei He!76 = !DILocation(line: 63, column: 3, scope: !54)
234