aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-gcc.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-06-28 16:47:55 -0700
committerIan Lance Taylor <iant@golang.org>2021-06-29 11:01:19 -0700
commit8a8a7d332d5d01db5aea7336a36d9fd71a679fb1 (patch)
treecb442340b2a2dc94907f1f3499ccb6eed343d4f3 /gcc/go/go-gcc.cc
parentc60d9160b4d966dbea5b1bbea4f817c64d0bee2d (diff)
downloadgcc-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