We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
type T struct { a, b, c, d int } func f(p *T) { *p = T{1, 2, 3, 4} }
The code for f is:
f
(tmp1.go:8) MOVQ "".statictmp_0(SB), AX (tmp1.go:8) MOVQ "".statictmp_0+8(SB), CX (tmp1.go:8) MOVQ "".statictmp_0+16(SB), DX (tmp1.go:8) MOVQ "".statictmp_0+24(SB), BX (tmp1.go:8) MOVQ "".p+8(FP), SI (tmp1.go:8) MOVQ AX, (SI) (tmp1.go:8) MOVQ CX, 8(SI) (tmp1.go:8) MOVQ DX, 16(SI) (tmp1.go:8) MOVQ BX, 24(SI)
That's kind of dumb to copy from a statictmp. Just use MOVQ $1, (SI) and so forth.
MOVQ $1, (SI)
The text was updated successfully, but these errors were encountered:
This was broken by the fix to #12841. The trick here is to figure out how to selectively disable that optimization so that #12841 doesn't regress.
Sorry, something went wrong.
CL shortly.
CL https://golang.org/cl/43154 mentions this issue.
ee69c21
No branches or pull requests
The code for
f
is:That's kind of dumb to copy from a statictmp. Just use
MOVQ $1, (SI)
and so forth.The text was updated successfully, but these errors were encountered: