-
Notifications
You must be signed in to change notification settings - Fork 18k
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: memcombine does not combine stores separated by OpLocalAddr #70300
Comments
Change https://go.dev/cl/627255 mentions this issue: |
I feel like the right solution here is to not issue so many OpLocalAddr in the first place. |
It sounds reasonable, but there is another thing I don't quite understand, since Ops like OpStore and OpLoad have their own memory args, why does OpLocalAddr also need a memory arg? |
I found the explanation in CL 122483 which introduced OpLocalAddr. I am studying it. |
https://go-review.googlesource.com/c/go/+/122484 (which looks abandoned-ish @dr2chase) implements the CSE part I suggested. My other suggestions are in there as comments as well. |
Change https://go.dev/cl/628075 mentions this issue: |
This CL is ready for review. PTAL. @randall77 |
Go version
devel go1.24-c96939fbed
Output of
go env
in your module/workspace:GOARCH='amd64'
What did you do?
Check the assembly code of this function:
What did you see happen?
What did you expect to see?
The text was updated successfully, but these errors were encountered: