]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: mark generated eq/hash functions as //go:noinline
authorMatthew Dempsky <mdempsky@google.com>
Fri, 11 Aug 2023 21:22:56 +0000 (14:22 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 14 Aug 2023 18:39:18 +0000 (18:39 +0000)
commitf123f5c7689f8b631686f74ebcbce15a8c650e74
tree0db0ca7e94630f895078c4bf0797a2e02c12be8d
parent133cea5cba354cca6540728334ddb1ed253e941e
cmd/compile: mark generated eq/hash functions as //go:noinline

Instead of having the inliner specially recognize that eq/hash
functions can't be inlined, change the geneq and genhash to mark them
as //go:noinline.

This is a prereq for a subsequent CL that will move more logic for
handling rtypes from package types to package reflectdata.

Change-Id: I091a9ededcc083fe8305cf5443a9af7d3a9053b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/518955
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/inline/inl.go
src/cmd/compile/internal/ir/func.go
src/cmd/compile/internal/reflectdata/alg.go
src/cmd/compile/internal/types/type.go