]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/devirtualize: use CallExpr.GoDefer for PGO
authorMatthew Dempsky <mdempsky@google.com>
Mon, 20 Nov 2023 16:19:49 +0000 (08:19 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 20 Nov 2023 18:59:37 +0000 (18:59 +0000)
commitddb38c3f540c17a0437132532f49f6f0061d82af
treebda76e645584b5c7125ad0650e7c11eec937181a
parent82fc03f9c9a1e3539d60ce085500dde3af5ff0b7
cmd/compile/internal/devirtualize: use CallExpr.GoDefer for PGO

CL 543657 dedup'd the go/defer statement recognition between the
inliner and static devirtualizer. This CL extends that for PGO-based
devirtualization too.

Change-Id: I998753132af1ef17329676f4e17515f16e0acb03
Reviewed-on: https://go-review.googlesource.com/c/go/+/543775
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/cmd/compile/internal/devirtualize/pgo.go