-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: eliminate more dead stores #25132
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
Comments
cc @mvdan, who recently poked at the deadstore pass. |
@josharian thank you for the ping! Quite obviously, I'm not going to submit anything for DSE in 1.11 :) Will try to get something working during the freeze. Michael Munday lives really close, so I might bribe him with a beer to help me hack on DSE. |
I poked at this briefly yesterday. I think (but am not sure) that there are two issues here.
I leave this in your hands. :) |
Change https://golang.org/cl/110121 mentions this issue: |
cc @mundaym |
Just a quick note: while I was looking at reproducing #29892 I noticed that the |
What version of Go are you using (
go version
)?Trunk
go version devel +3470321 Tue Apr 24 15:26:21 2018 -0500 linux/amd64
What did you do?
go build following program:
When looking into generated code I see that autotmp_1 is zeroed and than immediately overwritten
dse pass already eliminates dead stores, including zeroing, so it should also handle this case.
The text was updated successfully, but these errors were encountered: