]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: flag recomputing: find original values correctly
authorKeith Randall <khr@golang.org>
Thu, 29 Oct 2015 20:41:02 +0000 (13:41 -0700)
committerKeith Randall <khr@golang.org>
Thu, 29 Oct 2015 21:59:10 +0000 (21:59 +0000)
commitd04f38e3ee7b7948c4fd18a0a26ad351d2b88670
tree60b517b6c4c1c06f18bfc3d75a5a479e5b173b4c
parent74180dd7dad42b800f2408340ad17cb62c6c11fb
[dev.ssa] cmd/compile: flag recomputing: find original values correctly

We "spill" flag values by recomputing them from their original
inputs.  The "find original inputs" part of the algorithm was
a hack.  It was broken by rematerialization.  This change does
the real job of keeping track of original values for each
spill/restore/flagrecompute/rematerialization we issue.

Change-Id: I95088326a4ee4958c98148b063e518c80e863e4c
Reviewed-on: https://go-review.googlesource.com/16500
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/regalloc.go