]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: compile len(ch) as call to runtime.chanlen
authorRuss Cox <rsc@golang.org>
Thu, 15 Feb 2024 20:30:16 +0000 (15:30 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 28 Feb 2024 16:59:48 +0000 (16:59 +0000)
commitb6753baaedf6ae932c3ad4af1451163045e7ff84
treeed706bb8e2fae8a2d6e51ed3b27a50081ecc431c
parent370c8e983b49168b670ea4df76293738a833459b
cmd/compile: compile len(ch) as call to runtime.chanlen

An upcoming CL will give this call more to do.
For now, separate out the compiler change that
stops inlining the computation.

Change-Id: I4c5cbd84a0694b306191bff38cc6ea2d69458d7d
Reviewed-on: https://go-review.googlesource.com/c/go/+/564556
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/typecheck/_builtin/coverage.go
src/cmd/compile/internal/typecheck/_builtin/runtime.go
src/cmd/compile/internal/typecheck/builtin.go
src/cmd/compile/internal/walk/builtin.go
src/runtime/chan.go