]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: mark static arrays when initialize map literal as noalg
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 14 Apr 2020 16:01:18 +0000 (23:01 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 14 Apr 2020 16:39:49 +0000 (16:39 +0000)
commit54cbb6b0c2995b93209094eb35b45d9d7ddf9b26
tree22f615de44409c875461b54aefcd3bb0154c954d
parent2222e0601a367ab3e2da52c84cb8d4150dd9c705
cmd/compile: mark static arrays when initialize map literal as noalg

Same thing as CL 228222 does with static slice.

file      before    after     Δ       %
go        15228932  15228756  -176    -0.001%
addr2line 4429680   4429616   -64     -0.001%
api       5999032   5994904   -4128   -0.069%
asm       5087928   5087864   -64     -0.001%
compile   19727984  19723792  -4192   -0.021%
cover     5290296   5290184   -112    -0.002%
dist      3711816   3711784   -32     -0.001%
doc       4711208   4711176   -32     -0.001%
nm        4379344   4379264   -80     -0.002%
objdump   4773248   4773168   -80     -0.002%
pprof     14856148  14855764  -384    -0.003%
trace     11718212  11718020  -192    -0.002%
vet       8305944   8301768   -4176   -0.050%
total     131377612 131363900 -13712  -0.010%

Change-Id: I5ec00580b1509486c13aca43ad8f5cc7c450b62e
Reviewed-on: https://go-review.googlesource.com/c/go/+/227812
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/sinit.go