]> git.ipfire.org Git - thirdparty/gcc.git/commit
Allocate non_null_ref tables at creation.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 21 Sep 2021 06:26:50 +0000 (08:26 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 21 Sep 2021 16:55:13 +0000 (18:55 +0200)
commit08f392534a2c65fcebb1ce5a2f04459ac993a2f0
treec3788c0e4d9cc86c85ae362c39a8665cc620b086
parent303b5d874720aa1830c696a20e1e03abc1a12e14
Allocate non_null_ref tables at creation.

Preallocating the space is slightly cheaper than calling
safe_grow_cleared.

gcc/ChangeLog:

* gimple-range-cache.cc (non_null_ref::non_null_ref): Use create
and quick_grow_cleared instead of safe_grow_cleared.
gcc/gimple-range-cache.cc