]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: generalize isfat to handle 1-field structs and 1-element arrays
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 4 Sep 2019 04:11:22 +0000 (11:11 +0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 12 Sep 2019 06:48:02 +0000 (06:48 +0000)
commit3f0437e175d66a9c3d9ff1b201c4bb1b504dbfa7
tree72392d052349a265d54d35fa9b6fa5d15bf9a623
parent55c0ad4b62289e243e37d86e9cc16ae8289bd8b0
cmd/compile: generalize isfat to handle 1-field structs and 1-element arrays

After CL 192979, it is safe now to optimize isfat slightly to handle
1-field structs and 1-element arrays.

Change-Id: Ie3bc30299abbcef36eee7a0681997cc2f88ed6a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/192980
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/plive.go