]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove stale register use array
authorKeith Randall <khr@golang.org>
Thu, 13 Aug 2015 19:25:19 +0000 (12:25 -0700)
committerRuss Cox <rsc@golang.org>
Sat, 15 Aug 2015 17:37:14 +0000 (17:37 +0000)
commite97ab0a0acec9281dbca086d99d965100a196100
tree3a8ec30b5ec61778b34dcda772c5ed05d3fadb87
parentcda1fc0071140c5eb8f71b8eef0da0a39c69b641
cmd/compile: remove stale register use array

The reg[] array in .../gc is where truth lies.  The copy in .../ARCH
is incorrect as it is mostly not updated to reflect regalloc decisions.

This bug was introduced in the rewrite
https://go-review.googlesource.com/#/c/7853/.  The new reg[] array was
introduced in .../gc but not all of the uses were removed in the
.../ARCH directories.

Fixes #12133

Change-Id: I6364fc403cdab92d802d17f2913ba1607734037c
Reviewed-on: https://go-review.googlesource.com/13630
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/amd64/ggen.go
src/cmd/compile/internal/amd64/reg.go
src/cmd/compile/internal/arm64/ggen.go
src/cmd/compile/internal/arm64/reg.go
src/cmd/compile/internal/gc/gsubr.go
src/cmd/compile/internal/x86/ggen.go
src/cmd/compile/internal/x86/reg.go
test/fixedbugs/issue12133.go [new file with mode: 0644]