]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove CLOBBERDEAD experiment
authorKeith Randall <khr@google.com>
Mon, 26 Nov 2018 18:28:44 +0000 (10:28 -0800)
committerKeith Randall <khr@golang.org>
Mon, 26 Nov 2018 21:04:38 +0000 (21:04 +0000)
commit57c8eb92b78785d2bb8303b0ee7a7771d5df1be6
tree606cfa460bbe3a4674e467e85c1f2c65a4ec40ef
parent984be3b0f8388161e166039de8b7ac5383a76d10
cmd/compile: remove CLOBBERDEAD experiment

This experiment is less effective and less needed since the
introduction of stack objects.

We can't clobber stack objects because we don't know statically
whether they are live or not.

We don't really need this experiment that much any more, as it was
primarily used to test the complicated ambiguously-live logic in the
liveness analysis, which has been removed in favor of stack objects.

It is also ~infeasible to maintain once we have safepoints everywhere.

Fixes #27326

Change-Id: I3bdde480b93dd508d048703055d4586b496176af
Reviewed-on: https://go-review.googlesource.com/c/151317
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/plive.go
src/cmd/go/internal/work/gc.go
src/cmd/internal/objabi/util.go