diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-06-05 00:18:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-06-05 00:18:17 +0000 |
commit | 34f66a53b4f529f17643c1c1fc68dd3ae3f338ea (patch) | |
tree | 0bd3561a889220cfb173c2bdcb4e8cdbe9cf64fb /gcc/omp-low.c | |
parent | abccc5d2198f9bac2f09680bb9fb6882bfeae087 (diff) | |
download | gcc-34f66a53b4f529f17643c1c1fc68dd3ae3f338ea.zip gcc-34f66a53b4f529f17643c1c1fc68dd3ae3f338ea.tar.gz gcc-34f66a53b4f529f17643c1c1fc68dd3ae3f338ea.tar.bz2 |
compiler: statically allocate constant interface data
When converting a constant to interface, such as interface{}(42)
or interface{}("hello"), if the interface escapes, we currently
generate a heap allocation to hold the constant value.
This CL changes it to generate a static allocation instead, as
the gc compiler does. This reduces allocations in such cases.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/180277
From-SVN: r271945
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions