]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: single pass over Blocks in Liveness.epilogue
authorAustin Clements <austin@google.com>
Tue, 17 Apr 2018 20:33:59 +0000 (16:33 -0400)
committerAustin Clements <austin@google.com>
Tue, 22 May 2018 20:44:01 +0000 (20:44 +0000)
commit577c05ca1cba1555ee56f57065481a75aefe64ab
tree6c1645fc3bcef86ab19936e5e3ac0dbc94ef131b
parent51be90a251b2030da02079d28ce6dc50364a351e
cmd/compile: single pass over Blocks in Liveness.epilogue

Currently Liveness.epilogue makes three passes over the Blocks, but
there's no need to do this. Combine them into a single pass. This
eliminates the need for blockEffects.lastbitmapindex, but, more
importantly, will let us incrementally compact the liveness bitmaps
and significantly reduce allocatons in Liveness.epilogue.

Passes toolstash -cmp.

Updates #24543.

Change-Id: I27802bcd00d23aa122a7ec16cdfd739ae12dd7aa
Reviewed-on: https://go-review.googlesource.com/110175
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/gc/plive.go