mirror of
https://github.com/golang/go.git
synced 2026-02-06 18:00:01 +00:00
cmd/compile: reserve less memory for bitvectors
We only need 4 per block, not 7. That's almost 50% savings. Update #77170 Change-Id: I6229a1137e7a03769e30bd4081078817de9a4f84 Reviewed-on: https://go-review.googlesource.com/c/go/+/736340 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com> Auto-Submit: Keith Randall <khr@golang.org>
This commit is contained in:
parent
0152075d5a
commit
bfb851c31e
1 changed files with 1 additions and 1 deletions
|
|
@ -427,7 +427,7 @@ func newliveness(fn *ir.Func, f *ssa.Func, vars []*ir.Name, idx map[*ir.Name]int
|
|||
|
||||
nblocks := int32(len(f.Blocks))
|
||||
nvars := int32(len(vars))
|
||||
bulk := bitvec.NewBulk(nvars, nblocks*7, fn.Pos())
|
||||
bulk := bitvec.NewBulk(nvars, nblocks*4, fn.Pos())
|
||||
for _, b := range f.Blocks {
|
||||
be := lv.blockEffects(b)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue