]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: don't flush a value derived from the current value
authorTodd Neal <todd@tneal.org>
Sun, 26 Jul 2015 14:48:20 +0000 (09:48 -0500)
committerTodd Neal <todd@tneal.org>
Mon, 27 Jul 2015 20:14:14 +0000 (20:14 +0000)
commitc9a38ce758e3de93e73842bf42a6e84f182d183a
tree6d20478d08c63153fefd0b8aebeaacc837a7fd57
parentb61f8c8df3247945ef723a22df0327264adfa3f9
[dev.ssa] cmd/compile: don't flush a value derived from the current value

If flushing a value from a register that might be used by the current
old-schedule value, save it to the home location.

This resolves the error that was changed from panic to unimplemented in
CL 12655.

Change-Id: If864be34abcd6e11d6117a061376e048a3e29b3a
Reviewed-on: https://go-review.googlesource.com/12682
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/testdata/arith_ssa.go
src/cmd/compile/internal/ssa/regalloc.go