]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: reduce allocations in prove by reusing posets
authorGiovanni Bajo <rasky@develer.com>
Mon, 30 Apr 2018 22:57:57 +0000 (00:57 +0200)
committerGiovanni Bajo <rasky@develer.com>
Mon, 14 May 2018 14:44:55 +0000 (14:44 +0000)
commit3c8545c5f6f6db7de1e9c8186fa9f23f4820ad45
tree62696213febf008b4ce28dfdd1cfca549967933e
parent67656ba71b54779d9f98995a12ed87e7c7618cad
cmd/compile: reduce allocations in prove by reusing posets

In prove, reuse posets between different functions by storing them
in the per-worker cache.

Allocation count regression caused by prove improvements is down
from 5% to 3% after this CL.

Updates #25179

Change-Id: I6d14003109833d9b3ef5165fdea00aa9c9e952e8
Reviewed-on: https://go-review.googlesource.com/110455
Run-TryBot: Giovanni Bajo <rasky@develer.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/cache.go
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/poset.go
src/cmd/compile/internal/ssa/poset_test.go
src/cmd/compile/internal/ssa/prove.go