]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: clean up hardcoded regmasks in ssa/regalloc.go
authorCherry Zhang <cherryyz@google.com>
Thu, 19 May 2016 16:33:30 +0000 (12:33 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 2 Jun 2016 13:01:44 +0000 (13:01 +0000)
commit90883091ff5f7170c83f847d6748cf36713e8c9b
tree6b214363424729f5a6cd5c4105615b63bac0570b
parent8756d9253f56f28167543fbd41c15e5695e654b2
[dev.ssa] cmd/compile: clean up hardcoded regmasks in ssa/regalloc.go

Auto-generate register masks and load them through Config.

Passed toolstash -cmp on AMD64.

Tests phi_ssa.go and regalloc_ssa.go in cmd/compile/internal/gc/testdata
passed on ARM.

Updates #15365.

Change-Id: I393924d68067f2dbb13dab82e569fb452c986593
Reviewed-on: https://go-review.googlesource.com/23292
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/ARMOps.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/regalloc.go