]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: don't store block start states
authorHeschi Kreinick <heschi@google.com>
Wed, 31 Jan 2018 20:08:05 +0000 (15:08 -0500)
committerHeschi Kreinick <heschi@google.com>
Tue, 20 Feb 2018 22:43:33 +0000 (22:43 +0000)
commita306341db740f521bd6fb3962a9f812cd4f42949
treeac34090a90f711eb83b33b27f857c1b39b7278cf
parent0cacc4d0e2a7bde8c50b5ef47ef65679226a1592
cmd/compile/internal/ssa: don't store block start states

Keeping the start state of each block around costs more than just
recomputing them as necessary, especially because many blocks only have
one predecessor and don't need any merging at all. Stop storing the
start state, and reuse predecessors' end states as much as conveniently
possible.

Change-Id: I549bad9e1a35af76a974e46fe69f74cd4dce873b
Reviewed-on: https://go-review.googlesource.com/92399
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/debug.go