]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: use type hash from itab field instead of type field
authorKeith Randall <khr@golang.org>
Tue, 26 Sep 2023 01:00:10 +0000 (18:00 -0700)
committerKeith Randall <khr@google.com>
Mon, 9 Oct 2023 18:39:50 +0000 (18:39 +0000)
commite0948d825d8dab1a685bcb94bfc9ad69b9b6c075
treeb302e30dbdf4f589c79ce3f8186f290e803eaaf6
parent778880b00888066212864f95877c0febbebf7e69
cmd/compile: use type hash from itab field instead of type field

It is one less dependent load away, and right next to another
field in the itab we also load as part of the type switch or
type assert.

Change-Id: If7aaa7814c47bd79a6c7ed4232ece0bc1d63550e
Reviewed-on: https://go-review.googlesource.com/c/go/+/533117
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ir/stmt.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/walk/switch.go
test/codegen/switch.go