From: Aldy Hernandez Date: Tue, 21 Sep 2021 06:26:50 +0000 (+0200) Subject: Allocate non_null_ref tables at creation. X-Git-Tag: basepoints/gcc-13~4556 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08f392534a2c65fcebb1ce5a2f04459ac993a2f0;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/gimple-range-cache.cc b/gcc/gimple-range-cache.cc index fbf0f95eef90..b856b212169b 100644 --- a/gcc/gimple-range-cache.cc +++ b/gcc/gimple-range-cache.cc @@ -37,8 +37,8 @@ along with GCC; see the file COPYING3. If not see non_null_ref::non_null_ref () { - m_nn.create (0); - m_nn.safe_grow_cleared (num_ssa_names); + m_nn.create (num_ssa_names); + m_nn.quick_grow_cleared (num_ssa_names); bitmap_obstack_initialize (&m_bitmaps); }