-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: pointless static copy code #17113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
ToolSpeed
Milestone
Comments
CL https://golang.org/cl/29213 mentions this issue. |
gopherbot
pushed a commit
that referenced
this issue
Sep 15, 2016
staticassign unwraps all CONVNOPs. However, in the included test, we need the CONVNOP for everything to typecheck. Stop unwrapping unnecessarily. The code we generate for this example is suboptimal, but that's not new; see #17113. Fixes #17111. Change-Id: I29532787a074a6fe19a5cc53271eb9c84bf1b576 Reviewed-on: https://go-review.googlesource.com/29213 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
josharian
added a commit
to josharian/go
that referenced
this issue
Sep 15, 2016
staticassign unwraps all CONVNOPs. However, in the included test, we need the CONVNOP for everything to typecheck. Stop unwrapping unnecessarily. The code we generate for this example is suboptimal, but that's not new; see golang#17113. Fixes golang#17111. Change-Id: I29532787a074a6fe19a5cc53271eb9c84bf1b576
This appears fixed with latest tip (go version devel +498eaee461 Fri Nov 15 02:31:58 2019 +0000 linux/amd64)
I will go ahead and close this. Please feel free to reopen if this was a mistake. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Performance
ToolSpeed
compiles to:
Observe that we generate init code to copy i to x, even though x could be entirely staticly initialized.
The text was updated successfully, but these errors were encountered: