This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: compute_bb_for_insn
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: compute_bb_for_insn
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 21 Sep 1999 03:37:29 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <19990920131116.A28721@cygnus.com>you write:
> I found I needed this in some Haifa cleanup I'd started.
> Given we already export set_block_for_insn, it seems silly
> not to export the "rebuild everything" function as well.
>
>
> r~
>
>
> * basic-block.h (compute_bb_for_insn): Declare.
> * flow.c (compute_bb_for_insn): Export. Don't accept the varray
> to use; set size of basic_block_for_insn directly.
> (find_basic_blocks): Update.
Ohhhh. I actually started some cleanup too (probably not nearly as ambitious
as yours).
The one thing we really want to make sure we do is clean up and promote the
code to detect irregular cfgs and natural loops into flow.c or some other
generic module. Stan needs this stuff and it's one of the pieces we need to
really clean up loop & LRS.
jeff