]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: ignore g register in liveness analysis
authorAustin Clements <austin@google.com>
Tue, 22 May 2018 21:27:54 +0000 (17:27 -0400)
committerAustin Clements <austin@google.com>
Tue, 22 May 2018 21:49:36 +0000 (21:49 +0000)
commit132900982c2b28470559afcdc43f517cdf285e9c
treef3ba0d1010f9702a3e929527ec08b9ace518cbde
parentcfbf375a81a54027bdbd8e74a946d0c1124dc771
cmd/compile: ignore g register in liveness analysis

In rare circumstances that we don't yet fully understand, the g
register can be spilled to the stack and then reloaded. If this
happens, liveness analysis sees a pointer load into a
non-general-purpose register and panics.

We should fix the root cause of this, but fix the build for now by
ignoring pointer loads into the g register.

For #25504.

Change-Id: I0dfee1af9750c8e9157c7637280cdf07118ef2ca
Reviewed-on: https://go-review.googlesource.com/114081
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/plive.go