]> Cypherpunks repositories - gostls13.git/commit
cmd/6g, cmd/8g, cmd/5g: make the undefined instruction have no successors
authorDaniel Morsing <daniel.morsing@gmail.com>
Tue, 11 Feb 2014 20:25:40 +0000 (20:25 +0000)
committerDaniel Morsing <daniel.morsing@gmail.com>
Tue, 11 Feb 2014 20:25:40 +0000 (20:25 +0000)
commit85e4cb2f10eb1bbc147b6b549f48eb243c3517e3
tree460033d01f42de29d76f94dba2b3bfd7da6ffc3c
parent517f4a96837e345609aca6f5bdf1fbeb92c70647
cmd/6g, cmd/8g, cmd/5g: make the undefined instruction have no successors

The UNDEF instruction was listed in the instruction data as having the next instruction in the stream as its successor. This confused the optimizer into adding a load where it wasn't needed, in turn confusing the liveness analysis pass for GC bitmaps into thinking that the variable was live.

Fixes #7229.

LGTM=iant, rsc
R=golang-codereviews, bradfitz, iant, dave, rsc
CC=golang-codereviews
https://golang.org/cl/56910045
src/cmd/5g/prog.c
src/cmd/6g/prog.c
src/cmd/8g/prog.c