cmd/compile: unneeded stack checks and stack handling #32197
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What did you do?
I compiled the following program https://play.golang.org/p/STj160cWl4l, simplified from a bigger code base.
What did you expect to see?
I expected function a1 to be compiled to a simple return, without the need for the stack checks and stack handling after a2 returns, given that a2 is compiled to a simple return.
My expectation came from the fact that in this other program (https://play.golang.org/p/VBBQJvevHxw), in which a2 still compiles to the same code, a1 doesn't have the stack checks/stack handling.
What did you see instead?
Instead, a1 was compiled with stack checks/stack handling.
The text was updated successfully, but these errors were encountered: