]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: only check whether struct or array types are big
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Sep 2019 17:34:58 +0000 (17:34 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Sep 2019 17:34:58 +0000 (17:34 +0000)
commit7381e96cf6359f48bf5a1c4c091e910e7b10989d
treed332e1b74655be58b31b8e28c5906c68d7ce5642
parent30c6188eb54eacf2a8f6d0c71079b860fcacac2a
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

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