]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: optimize type switch for a single runtime known type with a case var
authorYoulin Feng <fengyoulin@live.com>
Tue, 8 Oct 2024 04:49:30 +0000 (12:49 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 25 Oct 2024 02:56:11 +0000 (02:56 +0000)
commit711552e98acbfda7e974dacf4e3a0a8f8dcaa371
tree07f46ffb28a9cdbcf3a1c6f42ffac805ec407b58
parent15c558016088d6aaf103b4f0fd2b716a4573e5a2
cmd/compile: optimize type switch for a single runtime known type with a case var

Change-Id: I03ba70076d6dd3c0b9624d14699b7dd91a3c0e9b
Reviewed-on: https://go-review.googlesource.com/c/go/+/618476
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/walk/switch.go
test/codegen/typeswitch.go