compiler: stack allocate non-escaping makeslice
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Jan 2018 23:21:38 +0000 (23:21 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Jan 2018 23:21:38 +0000 (23:21 +0000)
commite732b4248592cc992eddcd00d37c6457d99381e7
treef67e2b7279b92512a19b582799ce951bbc70d1ee
parent9ac55031c41077b7465c64ac80587587709acbba
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

From-SVN: r256404
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/wb.cc