commit | 6f6276ce366f0f9cd9748d9c910310e0bc7dc8e5 | [log] [tgz] |
---|---|---|
author | Matthew Dempsky <mdempsky@google.com> | Tue Jan 03 12:11:44 2023 -0800 |
committer | Matthew Dempsky <mdempsky@google.com> | Thu Jan 26 23:27:24 2023 +0000 |
tree | 934d69c784677969b42a59d08e1f3f914fd9b9a5 | |
parent | a0bebffa339efc92af3a51781d910ef79b830482 [diff] |
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>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.