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.
This commit is contained in:
parent
303b5d8747
commit
08f392534a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user