]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: keep autos whose address reaches a phi
authorMichael Munday <mike.munday@ibm.com>
Sat, 30 Jun 2018 09:14:49 +0000 (10:14 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 2 Jul 2018 19:43:07 +0000 (19:43 +0000)
commitadfa8b86915296d1e98ce695420fc6d1faba6eb6
tree428c719f266e94fbc5af2d960b62a6386420b356
parent23ce272bb1154fb8085c8fc1e3c1f1e0e760f005
cmd/compile: keep autos whose address reaches a phi

If the address of an auto reaches a phi then any further stores to
the pointer represented by the phi probably need to be kept. This
is because stores to the other arguments to the phi may be visible
to the program.

Fixes #26153.

Change-Id: Ic506c6c543bf70d792e5b1a64bdde1e5fdf1126a
Reviewed-on: https://go-review.googlesource.com/121796
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/compile/internal/ssa/deadstore.go
test/fixedbugs/issue26153.go [new file with mode: 0644]