]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: only clobber dead slots at call sites
authorCherry Zhang <cherryyz@google.com>
Wed, 29 Aug 2018 15:55:55 +0000 (11:55 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 30 Aug 2018 18:27:08 +0000 (18:27 +0000)
commitc8545722a105f4a21583aeee00adcbd01436b98b
tree364043b2693a48dd7ff2b8499f5352c4c85c685b
parentc99687f87aed84342cfe92ae78924f791237c6f6
cmd/compile: only clobber dead slots at call sites

We now have safepoints at nearly all the instructions. When
GOEXPERIMENT=clobberdead is on, it inserts clobbers nearly at
every instruction. Currently this doesn't work. (Maybe the stack
maps at non-call safepoints are still imprecise. I haven't
investigated.) For now, only use call-based safepoints if the
experiment is on.

Updates #27326.

Change-Id: I72cda9b422d9637cc5738e681502035af7a5c02d
Reviewed-on: https://go-review.googlesource.com/131956
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/plive.go