Commit 93e97ef0 authored by Matthew Dempsky's avatar Matthew Dempsky

cmd/compile/internal/gc: update comment in plive.go

onebitwalktype1 no longer appears to be a bottleneck for the mentioned
test case. In fact, we appear to compile it significantly faster now
than Go 1.4 did (~1.8s vs ~3s).

Fixes #21951.

Change-Id: I315313e906092a7d6ff4ff60a918d80a4cff7a7f
Reviewed-on: https://go-review.googlesource.com/65110Reviewed-by: default avatarKeith Randall <khr@golang.org>
parent 1eacf788
...@@ -351,10 +351,9 @@ func (lv *Liveness) blockEffects(b *ssa.Block) *BlockEffects { ...@@ -351,10 +351,9 @@ func (lv *Liveness) blockEffects(b *ssa.Block) *BlockEffects {
return &lv.be[b.ID] return &lv.be[b.ID]
} }
// NOTE: The bitmap for a specific type t should be cached in t after the first run // NOTE: The bitmap for a specific type t could be cached in t after
// and then simply copied into bv at the correct offset on future calls with // the first run and then simply copied into bv at the correct offset
// the same type t. On https://rsc.googlecode.com/hg/testdata/slow.go, onebitwalktype1 // on future calls with the same type t.
// accounts for 40% of the 6g execution time.
func onebitwalktype1(t *types.Type, off int64, bv bvec) { func onebitwalktype1(t *types.Type, off int64, bv bvec) {
if t.Align > 0 && off&int64(t.Align-1) != 0 { if t.Align > 0 && off&int64(t.Align-1) != 0 {
Fatalf("onebitwalktype1: invalid initial alignment, %v", t) Fatalf("onebitwalktype1: invalid initial alignment, %v", t)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment