diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-09-27 17:34:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-09-27 17:34:58 +0000 |
commit | 51c3b7c6ec20262f2a4698f42e533c28d2c38a87 (patch) | |
tree | d332e1b74655be58b31b8e28c5906c68d7ce5642 /gcc/cp/constexpr.c | |
parent | df435456846445e0939197af4bc19e813d6ef8c4 (diff) | |
download | gcc-51c3b7c6ec20262f2a4698f42e533c28d2c38a87.zip gcc-51c3b7c6ec20262f2a4698f42e533c28d2c38a87.tar.gz gcc-51c3b7c6ec20262f2a4698f42e533c28d2c38a87.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions