]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: regalloc: drop values that aren't used until after a call
authorKeith Randall <khr@golang.org>
Wed, 12 Jul 2023 22:31:25 +0000 (15:31 -0700)
committerKeith Randall <khr@golang.org>
Mon, 26 Aug 2024 22:29:43 +0000 (22:29 +0000)
commit36b45bca66d86020f0b4daf1f15b02921a8dad43
treed4f4629ec401f47d97025936d2190d4123253165
parenta7689a013432244b0e7e99606cdf89c2722351e0
cmd/compile: regalloc: drop values that aren't used until after a call

No point in keeping values in registers when their next use is after
a call, as we'd have to spill/restore them anyway.

cmd/go is 0.1% smaller.

Fixes #59297

Change-Id: I10ee761d0d23229f57de278f734c44d6a8dccd6c
Reviewed-on: https://go-review.googlesource.com/c/go/+/509255
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/ssa/regalloc.go
test/codegen/issue59297.go [new file with mode: 0644]