]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: guard partially live arg spilling with number of registers
authorCherry Zhang <cherryyz@google.com>
Tue, 20 Apr 2021 17:09:54 +0000 (13:09 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 20 Apr 2021 18:34:56 +0000 (18:34 +0000)
commit77860ad2809d88566d28783e0382073fb9836d9b
tree41192a034d3d903ebe7f615f759f214ebe70495d
parent109d7580a5c507b1e4f460445a5c4cd7313e4aa6
cmd/compile: guard partially live arg spilling with number of registers

The code that does partially live in-register arg spilling is
currently guarded with GOEXPERIMENT=regabiargs. But on platforms
where GOEXPERIMENT=regabiargs is not enabled there are still tests
that use register args. Guard it with actual number of registers
used, so it covers both.

Should fix the freeBSD builder.

Change-Id: I0d3c49d7a2389096cb6b17ca35b9b4ce567bc91e
Reviewed-on: https://go-review.googlesource.com/c/go/+/311830
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/ssagen/ssa.go