From: Keith Randall Date: Wed, 14 Jan 2026 17:33:10 +0000 (-0800) Subject: cmd/compile: reserve less memory for bitvectors X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bfb851c31eaf385649263e42e1a8620e2df01158;p=gostls13.git 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 Reviewed-by: Keith Randall Reviewed-by: Cherry Mui Auto-Submit: Keith Randall --- diff --git a/src/cmd/compile/internal/liveness/plive.go b/src/cmd/compile/internal/liveness/plive.go index 63c85ea26d..4659d10460 100644 --- a/src/cmd/compile/internal/liveness/plive.go +++ b/src/cmd/compile/internal/liveness/plive.go @@ -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)