-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
runtime,cmd/compile: miss an optimization case for "struct{byte}" #49879
Comments
It seems to me that we need to extend
|
Sounds good. Can |
Or,
|
Then |
@randall77 |
A little bit unfortunate. We can lift to both callsites and then add an assertion in |
Change https://golang.org/cl/367755 mentions this issue: |
I sent https://go-review.googlesource.com/c/go/+/367755 for quick prototyping. I'm a bit nervous with adding the assertion in
looks a bit ugly to me. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
Similar value boxing costs.
What did you see instead?
Boxing
struct{n byte}
values is more costly than others.The text was updated successfully, but these errors were encountered: