}
}
})
- if base.Debug.PGOInline > 0 {
+ if base.Debug.PGOInline >= 2 {
fmt.Printf("hot-cg before inline in dot format:")
p.PrintWeightedCallGraphDOT(inlineHotCallSiteThresholdPercent)
}
// pgoInlineEpilogue updates IRGraph after inlining.
func pgoInlineEpilogue(p *pgo.Profile) {
- if base.Debug.PGOInline > 0 {
+ if base.Debug.PGOInline >= 2 {
ir.VisitFuncsBottomUp(typecheck.Target.Decls, func(list []*ir.Func, recursive bool) {
for _, f := range list {
name := ir.PkgFuncName(f)
return n
}
if base.Debug.PGOInline > 0 {
- fmt.Printf("hot-budget check allows inlining for callsite at %v\n", ir.Line(n))
+ fmt.Printf("hot-budget check allows inlining for call %s at %v\n", ir.PkgFuncName(fn), ir.Line(n))
}
} else {
// The inlined function body is too big. Typically we use this check to restrict