]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: optimize generated struct/array equality code
authorKeith Randall <khr@golang.org>
Wed, 16 Sep 2020 17:13:37 +0000 (10:13 -0700)
committerKeith Randall <khr@golang.org>
Wed, 28 Oct 2020 04:33:41 +0000 (04:33 +0000)
commitc95bd2e6a99ab06efadb265bf42bbaf8d964904f
tree64294aace19756c95dd4b3f683153f6d6c2852ab
parent02335cf4131f4eb1869f50f906e993676f7f414a
cmd/compile: optimize generated struct/array equality code

Use a standard "not-equal" label that we can jump to when we
detect that the arguments are not equal. This prevents the
recombination that was noticed in #39428.

Fixes #39428

Change-Id: Ib7c6b3539f4f6046043fd7148f940fcdcab70427
Reviewed-on: https://go-review.googlesource.com/c/go/+/255317
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/alg.go