]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.24] cmd/compile: ensure we don't reuse temporary register
authorkhr@golang.org <khr@golang.org>
Sun, 23 Feb 2025 18:34:00 +0000 (10:34 -0800)
committerMichael Pratt <mpratt@google.com>
Wed, 26 Feb 2025 17:43:51 +0000 (09:43 -0800)
commit4e6d3468cca90ffcbd62a545c33d61806c438505
tree302d36af4d6e829261959f12eccf45c4089eaa06
parentf5c388313f5ca4c6d71ddc2d8e14d552e5c7648b
[release-branch.go1.24] cmd/compile: ensure we don't reuse temporary register

Before this CL, we could use the same register for both a temporary
register and for moving a value in the output register out of the way.

Fixes #71904

Change-Id: Iefbfd9d4139136174570d8aadf8a0fb391791ea9
Reviewed-on: https://go-review.googlesource.com/c/go/+/651221
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
(cherry picked from commit cc16fb52e6f1eafaee468f8563525ec391e016f5)
Reviewed-on: https://go-review.googlesource.com/c/go/+/652178
src/cmd/compile/internal/ssa/regalloc.go
test/fixedbugs/issue71857.go [new file with mode: 0644]