]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: abstract bvec sets
authorAustin Clements <austin@google.com>
Thu, 19 Apr 2018 19:56:19 +0000 (15:56 -0400)
committerAustin Clements <austin@google.com>
Tue, 22 May 2018 20:44:02 +0000 (20:44 +0000)
commit3c4aaf8a32851affec9d1a3eb28495f4bf717318
tree3cd459cd738ba1e7353f28e49de11bdc8601f7d7
parent577c05ca1cba1555ee56f57065481a75aefe64ab
cmd/compile: abstract bvec sets

This moves the bvec hash table logic out of Liveness.compact and into
a bvecSet type. Furthermore, the bvecSet type has the ability to grow
dynamically, which the current implementation doesn't. In addition to
making the code cleaner, this will make it possible to incrementally
compact liveness bitmaps.

Passes toolstash -cmp

Updates #24543.

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