compiler: only check whether struct or array types are big
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 27 Sep 2019 17:34:58 +0000 (17:34 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 27 Sep 2019 17:34:58 +0000 (17:34 +0000)
commit51c3b7c6ec20262f2a4698f42e533c28d2c38a87
treed332e1b74655be58b31b8e28c5906c68d7ce5642
parentdf435456846445e0939197af4bc19e813d6ef8c4
compiler: only check whether struct or array types are big

    Fetching the size of a type typically involves a hash table lookup,
    and is generally non-trivial.  The escape analysis code calls is_big
    more than one might expect.  So only fetch the size if we need it.

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

From-SVN: r276187
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/escape.cc