]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/inline: adjust isBigFunc to recognize unified IR codegen
authorMatthew Dempsky <mdempsky@google.com>
Tue, 3 Jan 2023 20:11:44 +0000 (12:11 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 26 Jan 2023 23:27:24 +0000 (23:27 +0000)
commit6f6276ce366f0f9cd9748d9c910310e0bc7dc8e5
tree934d69c784677969b42a59d08e1f3f914fd9b9a5
parenta0bebffa339efc92af3a51781d910ef79b830482
cmd/compile/internal/inline: adjust isBigFunc to recognize unified IR codegen

Unified IR generates uniform IR for "a, b = f()" to be able to insert
implicit conversion expressions, but the result is somewhat more
verbose and trips up the inliner's naive cost metrics.

The hairyVisitor.doNode method was already adjusted to account for
this, but isBigFunc needs the same adjustment.

Fixes #57563.

Change-Id: Ia8d86a6e314ec60190c78f40ace4fb30dadc4413
Reviewed-on: https://go-review.googlesource.com/c/go/+/460395
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Benny Siegert <bsiegert@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/inline/inl.go