compiler: inline functions with assignments and return statements
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 28 Nov 2018 18:08:21 +0000 (18:08 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 28 Nov 2018 18:08:21 +0000 (18:08 +0000)
commit5456f30d92062d234208cd8634e54787f6e2664f
tree023b9e1979b33d40c37b642607932fe34787f69a
parent85041a5b7755dc7b9d74b183e933d89152997886
compiler: inline functions with assignments and return statements

    Support inlining functions that contain only assignments and return
    statements, with expressions of either constants or parameters.
    Functions that contain other kinds of statements or expressions are
    not yet inlined.  With this change, about 100 functions in the
    standard library are inlinable.

    Reviewed-on: https://go-review.googlesource.com/c/150073

From-SVN: r266573
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/statements.h