]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: correctly use X15 to zero frame
authorCherry Zhang <cherryyz@google.com>
Mon, 22 Feb 2021 22:43:08 +0000 (17:43 -0500)
committerCherry Zhang <cherryyz@google.com>
Mon, 22 Feb 2021 23:37:09 +0000 (23:37 +0000)
commit1678829d9555761c0fa6571fd3bcaec016add3d2
tree834818fc1752f7f860a1199f467bbb9b93ac9d41
parent094048b93845c08e0f2db8639764f9564e64835b
cmd/compile: correctly use X15 to zero frame

In CL 288093 we reserve X15 as the zero register and use that to
zero values. It only covered zeroing generated in SSA but missed
zeroing the frame generated late in the compilation. The latter
still uses X0, but now DUFFZERO expects X15, so it doesn't
actually zero the frame. Change it to use X15.

Should fix #44333.

Change-Id: I239d2b78a5f6468bc86b70aecdd294045311759f
Reviewed-on: https://go-review.googlesource.com/c/go/+/295210
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/amd64/ggen.go