Commit 7eca0767 by Jan Hubicka Committed by Jan Hubicka

cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info array.

	* cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
	array.

From-SVN: r79585
parent 3a3ae5e5
2004-03-17 Jan Hubicka <jh@suse.cz>
* cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
array.
2004-03-17 James E Wilson <wilson@specifixinc.com>
* config/mips/mips.md (zero_extendsidi2): Add length attribute.
......
......@@ -338,8 +338,12 @@ rtl_create_basic_block (void *headp, void *endp, basic_block after)
rtx head = headp, end = endp;
basic_block bb;
/* Place the new block just after the end. */
VARRAY_GROW (basic_block_info, last_basic_block + 1);
/* Grow the basic block array if needed. */
if ((size_t) last_basic_block >= VARRAY_SIZE (basic_block_info))
{
size_t new_size = last_basic_block + (last_basic_block + 3) / 4;
VARRAY_GROW (basic_block_info, new_size);
}
n_basic_blocks++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment