Faster optimize_mode_switching

Richard Henderson rth@redhat.com
Mon Jan 14 13:32:00 GMT 2002


On Mon, Jan 14, 2002 at 09:37:58PM +0100, Jan Hubicka wrote:
> this patch makes optimize_mode_switching to not rebuild whole
> life information from the scratch after emitting code.

This looks good, but I think I'd rather hold this for 3.2.

> +       bb->flags |= BB_DIRTY;
> + 
> +       bb->flags |= BB_DIRTY;

Dup.

> +   for (block_num = 0; block_num < n_basic_blocks; block_num++)
> +     if (BASIC_BLOCK (block_num)->flags & BB_DIRTY)
> +       SET_BIT (update_life_blocks, block_num);

What about new empty blocks?  Can we consider that an error?
What we shouldn't do is just leave the live_at_start/end unset.


r~



More information about the Gcc-patches mailing list