]> Cypherpunks repositories - gostls13.git/commit
cmd/compile, reflect: treat abi.NoEscape as cheap call
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 26 Jul 2024 11:09:57 +0000 (18:09 +0700)
committerGopher Robot <gobot@golang.org>
Fri, 26 Jul 2024 16:18:47 +0000 (16:18 +0000)
commitb6efbd4efc733f3f398929e2722accfdb2653032
treeba8eb85e215799a29de5a73a55be9cb8ba3ffa5b
parentdeed521ea3daf42cb9c8388ae48fe57f17e252f5
cmd/compile, reflect: treat abi.NoEscape as cheap call

The abi.NoEscape function is introduced to replace all usages of
noescape wrapper in the standard library. However, the last usage in
reflect package is still present, because the inlining test failed if
abi.NoEscape were used. The reason is that reflect.noescape is treated
as a cheap call, while abi.NoEscape is not.

By treating abi.NoEscape a cheap call, the last usage of noescape in
reflect package can now be removed.

Change-Id: I798079780129221a5a26cbcb18c95ee30855b784
Reviewed-on: https://go-review.googlesource.com/c/go/+/601275
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/inline/inl.go
src/reflect/value.go