]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: avoid ifaceeq call if we know the interface is direct
authorKeith Randall <khr@golang.org>
Mon, 9 Dec 2024 20:55:33 +0000 (12:55 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 10 Feb 2025 21:28:41 +0000 (13:28 -0800)
commit072eea9b3b8e3c871707b5661948edd4090fc56a
treea4087fd48ff5cd8c5f889aca6387a60d083e9155
parentc8664ced4ef61456a98acb9f910b1646ae81e3b5
cmd/compile: avoid ifaceeq call if we know the interface is direct

We can just use == if the interface is direct.

Fixes #70738

Change-Id: Ia9a644791a370fec969c04c42d28a9b58f16911f
Reviewed-on: https://go-review.googlesource.com/c/go/+/635435
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/ssa/_gen/generic.rules
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewritegeneric.go
src/cmd/compile/internal/walk/compare.go
src/cmd/internal/obj/link.go
test/codegen/ifaces.go