diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-06-28 16:47:55 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-06-29 11:01:19 -0700 |
commit | 8a8a7d332d5d01db5aea7336a36d9fd71a679fb1 (patch) | |
tree | cb442340b2a2dc94907f1f3499ccb6eed343d4f3 /gcc/go/go-gcc.cc | |
parent | c60d9160b4d966dbea5b1bbea4f817c64d0bee2d (diff) | |
download | gcc-8a8a7d332d5d01db5aea7336a36d9fd71a679fb1.zip gcc-8a8a7d332d5d01db5aea7336a36d9fd71a679fb1.tar.gz gcc-8a8a7d332d5d01db5aea7336a36d9fd71a679fb1.tar.bz2 |
compiler: in composite literals use temps only for interfaces
For a composite literal we only need to introduce a temporary variable
if we may be converting to an interface type, so only do it then.
This saves over 80% of compilation time when using gccgo to compile
cmd/internal/obj/x86, as the GCC middle-end spends a lot of time
pointlessly computing interactions between temporary variables.
For PR debug/101064
For golang/go#46600
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/331513
Diffstat (limited to 'gcc/go/go-gcc.cc')
0 files changed, 0 insertions, 0 deletions