]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: Rematerialize in regalloc
authorKeith Randall <khr@golang.org>
Mon, 19 Oct 2015 17:57:03 +0000 (10:57 -0700)
committerKeith Randall <khr@golang.org>
Mon, 19 Oct 2015 19:01:24 +0000 (19:01 +0000)
commitc64a6f636282e1db66e6bda681be9b76069b1918
tree4205a3a21b7b4a67db8d4ed9930fd367dc758ab2
parentd076ef749b8628c9743f6544eb30e8fde5d7f289
[dev.ssa] cmd/compile: Rematerialize in regalloc

Rematerialize constants instead of spilling and loading them.
"Constants" includes constant offsets from SP and SB.

Should help somewhat with stack frame sizes.  I'm not sure
exactly how much yet.

Change-Id: I44dbad97aae870cf31cb6e89c92fe4f6a2b9586f
Reviewed-on: https://go-review.googlesource.com/16029
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/regalloc.go