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
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@271945
138bc75d-0d04-0410-961f-
82ee72b054a4