aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-05-22 17:33:23 -0400
committerAustin Clements <austin@google.com>2018-05-31 14:50:57 +0000
commit33cd4fba38b82693d7ffc62f50ea763694d4c8c3 (patch)
treea8362a315d67b4a7b99a209417959f11f809b340 /src
parentbfdf74be12e2527d797968870564e8dafc2aacb5 (diff)
downloadgo-33cd4fba38b82693d7ffc62f50ea763694d4c8c3.tar.xz
Revert "cmd/compile: ignore g register in liveness analysis"
This reverts commit ea200340702cf3ccfac7c5db1f11bb65c80971c7 now that CL 114695 fixed the root cause of #25504. Change-Id: If437fc832983bd8793bde28ce0e2e64436a0596c Reviewed-on: https://go-review.googlesource.com/114087 Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/compile/internal/gc/plive.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cmd/compile/internal/gc/plive.go b/src/cmd/compile/internal/gc/plive.go
index f3f1ca3d39..88b4380637 100644
--- a/src/cmd/compile/internal/gc/plive.go
+++ b/src/cmd/compile/internal/gc/plive.go
@@ -461,17 +461,6 @@ func (lv *Liveness) regEffects(v *ssa.Value) (uevar, kill liveRegMask) {
for _, reg := range regs[:nreg] {
if reg.GCNum() == -1 {
if ptrOnly {
- if reg.String() == "g" {
- // Issue #25504: Sometimes we
- // spill and reload the g
- // register, which this sees
- // as a pointer load into the
- // g register. The g register
- // isn't a GP register and
- // can't appear in register
- // maps. Ignore it.
- continue
- }
v.Fatalf("pointer in non-pointer register %v", reg)
} else {
continue