1
0
mirror of https://github.com/golang/go synced 2024-11-15 04:30:32 -07:00
go/src/cmd/compile
Keith Randall 75ce89c20d cmd/compile: cache CFG-dependent computations
We compute a lot of stuff based off the CFG: postorder traversal,
dominators, dominator tree, loop nest.  Multiple phases use this
information and we end up recomputing some of it.  Add a cache
for this information so if the CFG hasn't changed, we can reuse
the previous computation.

Change-Id: I9b5b58af06830bd120afbee9cfab395a0a2f74b2
Reviewed-on: https://go-review.googlesource.com/29356
Reviewed-by: David Chase <drchase@google.com>
2016-09-19 16:00:13 +00:00
..
internal cmd/compile: cache CFG-dependent computations 2016-09-19 16:00:13 +00:00
doc.go
fmt_test.go cmd/compile: reduce allocs some more 2016-09-13 16:59:56 +00:00
main.go cmd/compile: change goarch.Main into goarch.Init 2016-09-16 21:10:46 +00:00