]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: load constant values from abi.PtrType.Elem
authorYoulin Feng <fengyoulin@live.com>
Mon, 1 Sep 2025 10:31:29 +0000 (18:31 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 4 Sep 2025 14:25:26 +0000 (07:25 -0700)
commitdf290384864c0b3cbb557ef11fc95a29d52f6aca
treee9d188db9c4620d674f8b443934568b68a1c6465
parent4373754bc990fc13b27ae823f977bc6328cc331e
cmd/compile/internal/ssa: load constant values from abi.PtrType.Elem

This CL makes the generated code for reflect.TypeFor as simple as an
intrinsic function.

Fixes #75203

Change-Id: I7bb48787101f07e77ab5c583292e834c28a028d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/700336
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/_gen/generic.rules
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewritegeneric.go
test/codegen/issue75203.go [new file with mode: 0644]