]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: accounts rematerialize ops's output reginfo
authorJunyang Shao <shaojunyang@google.com>
Tue, 12 Aug 2025 16:53:44 +0000 (16:53 +0000)
committerCherry Mui <cherryyz@google.com>
Fri, 3 Oct 2025 19:30:11 +0000 (12:30 -0700)
commit10e796884905d23ab2419cc158769e8fdc73de4e
tree77df9a995c7d6b16750a1fd369ab96119de336ca
parentab043953cbd6e3cd262548710f35f05924aa8f32
cmd/compile: accounts rematerialize ops's output reginfo

This CL implements the check for rematerializeable value's output
regspec at its remateralization site. It has some potential problems,
please see the TODO in regalloc.go.

Fixes #70451.

Cherry-picked from the dev.simd branch. This CL is not
necessarily SIMD specific. Apply early to reduce risk.

Change-Id: Ib624b967031776851136554719e939e9bf116b7c
Reviewed-on: https://go-review.googlesource.com/c/go/+/695315
Reviewed-by: David Chase <drchase@google.com>
TryBot-Bypass: David Chase <drchase@google.com>
Reviewed-on: https://go-review.googlesource.com/c/go/+/708857
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/func_test.go
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssa/regalloc_test.go