aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/devirtualize
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2023-06-05 16:36:38 -0400
committerCherry Mui <cherryyz@google.com>2023-06-06 02:36:18 +0000
commit38e2376f35907ebbb98419f1f4b8f28125bf6aaf (patch)
tree56de1d4936de16ea7a99bcae5f218d6ca8a0bc53 /src/cmd/compile/internal/devirtualize
parent26a90e4e36c01ae0d356d4e077b99c31cfcb4d1e (diff)
downloadgo-38e2376f35907ebbb98419f1f4b8f28125bf6aaf.tar.xz
cmd/compile: adjust PGO devirtualization diagnostic message
Make it more consistent with the static devirtualization diagnostic message. Keep the print of concrete callee's method name, as it is clearer. Change-Id: Ibe9b40253eaff2c0071353a2b388177213488822 Reviewed-on: https://go-review.googlesource.com/c/go/+/500960 Run-TryBot: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/cmd/compile/internal/devirtualize')
-rw-r--r--src/cmd/compile/internal/devirtualize/pgo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/devirtualize/pgo.go b/src/cmd/compile/internal/devirtualize/pgo.go
index 979483a46f..a340248543 100644
--- a/src/cmd/compile/internal/devirtualize/pgo.go
+++ b/src/cmd/compile/internal/devirtualize/pgo.go
@@ -265,7 +265,7 @@ func constructCallStat(p *pgo.Profile, fn *ir.Func, name string, call *ir.CallEx
// concretetyp.
func rewriteCondCall(call *ir.CallExpr, curfn, callee *ir.Func, concretetyp *types.Type) ir.Node {
if base.Flag.LowerM != 0 {
- fmt.Printf("%v: PGO devirtualizing call to %v\n", ir.Line(call), callee)
+ fmt.Printf("%v: PGO devirtualizing %v to %v\n", ir.Line(call), call.X, callee)
}
// We generate an OINCALL of: