]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: reducing alloc footprint of dominator calc
authorDavid Chase <drchase@google.com>
Sat, 30 Jan 2016 22:37:38 +0000 (17:37 -0500)
committerDavid Chase <drchase@google.com>
Tue, 2 Feb 2016 02:20:25 +0000 (02:20 +0000)
commitc87a62f32bc5080c6656d3f80e2da8d5c63ed55b
treeec81992567f37b0f88d860cd707c68156ba1a471
parent25abe96214911fed68c5a66562bf524768e2a92a
[dev.ssa] cmd/compile: reducing alloc footprint of dominator calc

Converted working slices of pointer into slices of pointer
index.  Half the size (on 64-bit machine) and no pointers
to trace if GC occurs while they're live.

TODO - could expose slice mapping ID->*Block; some dom
clients also construct these.

Minor optimization in regalloc that cuts allocation count.

Minor optimization in compile.go that cuts calls to Sprintf.

Change-Id: I28f0bfed422b7344af333dc52ea272441e28e463
Reviewed-on: https://go-review.googlesource.com/19104
Run-TryBot: Todd Neal <todd@tneal.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Todd Neal <todd@tneal.org>
src/cmd/compile/internal/ssa/compile.go
src/cmd/compile/internal/ssa/dom.go
src/cmd/compile/internal/ssa/regalloc.go