diff options
author | Martin Liska <mliska@suse.cz> | 2020-08-10 12:09:19 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-09-01 14:25:52 +0200 |
commit | a292e31dac72c20cda3478b866ccf6e07dfad1a4 (patch) | |
tree | 7a9cdeeb1acb281f8d30ad084491c72188e9f77a /gcc/cfgrtl.c | |
parent | 8aa04a189b677159c475f7fc3409ee56c710f047 (diff) | |
download | gcc-a292e31dac72c20cda3478b866ccf6e07dfad1a4.zip gcc-a292e31dac72c20cda3478b866ccf6e07dfad1a4.tar.gz gcc-a292e31dac72c20cda3478b866ccf6e07dfad1a4.tar.bz2 |
vec: use inexact growth where possible.
gcc/ChangeLog:
* cfgrtl.c (rtl_create_basic_block): Use default value for
growth vector function.
* gimple.c (gimple_set_bb): Likewise.
* symbol-summary.h: Likewise.
* tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
(build_gimple_cfg): Likewise.
(create_bb): Likewise.
(move_block_to_fn): Likewise.
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r-- | gcc/cfgrtl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index eb5ccd4..45d84d3 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -376,12 +376,8 @@ rtl_create_basic_block (void *headp, void *endp, basic_block after) /* Grow the basic block array if needed. */ if ((size_t) last_basic_block_for_fn (cfun) >= basic_block_info_for_fn (cfun)->length ()) - { - size_t new_size = - (last_basic_block_for_fn (cfun) - + (last_basic_block_for_fn (cfun) + 3) / 4); - vec_safe_grow_cleared (basic_block_info_for_fn (cfun), new_size, true); - } + vec_safe_grow_cleared (basic_block_info_for_fn (cfun), + last_basic_block_for_fn (cfun) + 1); n_basic_blocks_for_fn (cfun)++; |