-
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
cmd/compile: inlining isn't performed on generated init functions #20321
Comments
It looks like this is as trivial as adding However, not release critical, and I'm concerned this might subtly interact with other passes. Let's do early in 1.11 instead. |
@mdempsky - I have tested that your fix works. I have not touched the compiler before. Do you think this is as trivial as just adding that one line ? (I can send the CL in that case) Or would you want tests too ? (I would need some guidance in that case). Or if you think it's better you do it yourself, that is fine too. Let me know. |
Early in 1.12 now, we need to be sure this is not too terrible for binary size. |
Too late for 1.12 cycle. Moving to 1.13. |
Yes, I think it's that simple.
Tests would be good. I'd expect you could write an |
Too late for 1.13. Let's try making the trivial fix right when the 1.14 tree opens and see how it fares. (And check on binary size and compilation time impact.) |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version devel +c061f51 Wed May 10 20:19:50 2017 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?amd64/linux
What did you do?
What did you expect to see?
No calls to main.double
The text was updated successfully, but these errors were encountered: