]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: refactor out an almost-superfluous arg
authorDavid Chase <drchase@google.com>
Wed, 17 Feb 2021 17:17:25 +0000 (12:17 -0500)
committerDavid Chase <drchase@google.com>
Thu, 4 Mar 2021 02:09:42 +0000 (02:09 +0000)
commit04a4dca2ac3d4f963e3c740045ce7a2959bf0319
tree8b9f72734d91157f6e477d07d528652541270485
parent775f11cda1d30f3f9778e737c2280cfe28ead1b4
cmd/compile: refactor out an almost-superfluous arg

Moved all "target" information into "storeRC"; it was a register
cursor, now it is a register cursor that also carries the store
target with it if there are no registers.  Also allows booby-trapping
to ensure that the target is unambiguously one or the other.

For #40724.

Change-Id: I53ba4b91679e5fcc89c63b7d31225135299c6ec6
Reviewed-on: https://go-review.googlesource.com/c/go/+/293397
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/expand_calls.go