]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: guard special register usage with GOEXPERIMENT=regabi
authorCherry Zhang <cherryyz@google.com>
Tue, 23 Feb 2021 00:45:21 +0000 (19:45 -0500)
committerCherry Zhang <cherryyz@google.com>
Tue, 23 Feb 2021 17:53:19 +0000 (17:53 +0000)
commitbf5fa2d19887bd86891447761b45041e500c2a07
treefc69a25ef005e23edb488c0b88d9299b6bfa3d9f
parentc7f596f919d779dc01a60f876cbd9d8cc2cd70b2
cmd/compile: guard special register usage with GOEXPERIMENT=regabi

Previously, some special register uses are only guarded with ABI
wrapper generation (-abiwrap). This CL makes it also guarded with
the GOEXPERIMENT. This way we can enable only the wrapper
generation without fully the new ABI, for benchmarking purposes.

Change-Id: I90fc34afa1dc17c9c73e7b06e940e79e4c4bf7f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/295289
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/amd64/ssa.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go