cmd/compile: multiple ineffective assignments #32624
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 function and inspected the assembly code generated (https://godbolt.org/z/-7YwuJ):
What did you expect to see?
I expected function
f
to be compiled to a simple move+return.What did you see instead?
Instead, I see 3 moves before the return.
The text was updated successfully, but these errors were encountered: