]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/arm64: remove Reginuse check in clearfat
authorDave Cheney <dave@cheney.net>
Sat, 15 Aug 2015 05:25:46 +0000 (15:25 +1000)
committerDave Cheney <dave@cheney.net>
Sun, 16 Aug 2015 00:29:39 +0000 (00:29 +0000)
commit467a2cb73ca867ccdb1dd22be220fa51b6d52491
tree8971e21cfa51410e5756ede69ddb4975e4630bac
parente8c4a5b8930ea0aa9c14008b0d387ac693ad5c8b
cmd/compile/internal/arm64: remove Reginuse check in clearfat

Fixes golang/go#12133

CL 13630 fixed the use of a stale reg[] array in the various arch
backends which was causing the check in clearfat to pass
unconditionally on arm64.

With this check fixed, arm64 now considers REGRT1 to always be in use
as it is part of the reserved register set, see arm64/gsubr.go.

However, ppc64 does not consider REGRT1 and REGRT2 to be part of its
reserved set, so its identical clearfat check passes.

This CL removes the Reginuse check inside clearfat as REGRT1 is
guarenteed always be free on arm64.

Change-Id: I4719150d3c3378fae155b863c474529df18d4c17
Reviewed-on: https://go-review.googlesource.com/13650
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/arm64/ggen.go