cmd/compile: remove unnecessary inline marks #31116
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
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 was playing around with the compiler to see what code it would produce under various situations.
After testing for a while, I found this case, where the code produced is a little weird:
What did you expect to see?
I expected the
test2
function to compile to a simple return.What did you see instead?
Instead, the following code was generated (notice the weird double jump):
Back in version go1.11, the code produced was a bare return, as I was initially expecting.
The text was updated successfully, but these errors were encountered: