]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: dense numbering for GP registers
authorAustin Clements <austin@google.com>
Sat, 24 Feb 2018 17:13:14 +0000 (12:13 -0500)
committerAustin Clements <austin@google.com>
Tue, 22 May 2018 15:55:01 +0000 (15:55 +0000)
commit840f25bedd1b3e8519b12a454010552eb90d3f73
tree9071860082121c633a3071bf084d7d22f47cae28
parent4f765b18f82ae022f681806f04674d3b175881a4
cmd/compile: dense numbering for GP registers

For register maps, we need a dense numbering of registers that may
contain pointers of interest to the garbage collector. Add this to
Register and compute it from the GP register set.

For #24543.

Change-Id: If6f0521effca5eca4d17895468b1fc52d67e0f32
Reviewed-on: https://go-review.googlesource.com/109351
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/location.go
src/cmd/compile/internal/ssa/opGen.go