compiler: permit inlining temporary statements and references

Programming / Compilers / GCC - ian [138bc75d-0d04-0410-961f-82ee72b054a4] - 6 June 2019 23:34 EDT

This increases the number of inlinable functions from 439 to 455. An example is math/bits.Mul32, which uses temporaries to handle the tuple assignment.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/180837

f6492beb53c compiler: permit inlining temporary statements and references
gcc/go/gofrontend/MERGE | 2 +-
gcc/go/gofrontend/export.cc | 35 ++++++++++++++--
gcc/go/gofrontend/export.h | 16 +++++++-
gcc/go/gofrontend/expressions.cc | 55 +++++++++++++++++++++++++
gcc/go/gofrontend/expressions.h | 10 +++++
gcc/go/gofrontend/import.cc | 31 ++++++++++++++
gcc/go/gofrontend/import.h | 13 +++++-
gcc/go/gofrontend/statements.cc | 88 ++++++++++++++++++++++++++++++++++++++++
gcc/go/gofrontend/statements.h | 11 +++++
9 files changed, 255 insertions(+), 6 deletions(-)

Upstream: gcc.gnu.org


  • Share