]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: make amd64 version of zerorange regabi-friendly
authorThan McIntosh <thanm@google.com>
Tue, 30 Mar 2021 12:49:42 +0000 (08:49 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 30 Mar 2021 19:40:46 +0000 (19:40 +0000)
commit3300390ec70c6b8e2392e4ab32342d426e2d3532
treee665e0e40093731984f53c91bf59c09782420f9e
parentc40dc677be05e2774c7805bf55002a960cb4dec5
cmd/compile: make amd64 version of zerorange regabi-friendly

Change the amd64 version of 'zerorange' to avoid using RAX/RDI, since
it can be called in a context when one of these registers is live
(contains an incoming parameter).

Updates #40724.

Change-Id: Ibfa2b4e156b876354d4f8bd04eb8773c7056d948
Reviewed-on: https://go-review.googlesource.com/c/go/+/305829
Trust: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/amd64/ggen.go