compiler: stack allocate non-escaping makeslice
commit72bf0e6e47cd845aa54e3047df7ba168b28cdb77
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 23:21:38 +0000 (9 23:21 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Jan 2018 23:21:38 +0000 (9 23:21 +0000)
treef67e2b7279b92512a19b582799ce951bbc70d1ee
parentb7327dbf3b15172a8abae545c1c2138e12a4b75a
compiler: stack allocate non-escaping makeslice

    If we're making a slice of constant size that does not need to
    escape, allocate it on stack.

    In lower, do not create temporaries for constant size makeslice,
    so that it is easier to detect the slice is constant size later.

    Reviewed-on: https://go-review.googlesource.com/85636

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256404 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/wb.cc