diff options
| author | Keith Randall <khr@golang.org> | 2026-01-14 09:33:10 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-01-22 07:31:38 -0800 |
| commit | bfb851c31eaf385649263e42e1a8620e2df01158 (patch) | |
| tree | 1919ce7f54ee5310deb2f18a4c9c5c047b9f0e32 | |
| parent | 0152075d5aba0f198ac67fb426a0fc4c16e2b363 (diff) | |
| download | go-bfb851c31eaf385649263e42e1a8620e2df01158.tar.xz | |
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>
| -rw-r--r-- | src/cmd/compile/internal/liveness/plive.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
