This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Improve removal of statements when removing blocks
- From: Andrew MacLeod <amacleod at redhat dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: 16 Jul 2003 21:24:26 -0400
- Subject: Re: [tree-ssa] Improve removal of statements when removing blocks
- References: <200307170111.h6H1BtW2010872@speedy.slc.redhat.com>
On Wed, 2003-07-16 at 21:11, law@redhat.com wrote:
>
> When we delete a basic block, we (correctly) call bsi_remove on each
> statement in the block to remove the statements.
> ! /* Remove all the instructions in the block. Do so in reverse order
> ! so that we remove all the containing COMPOUND_EXPRs as well. */
> ! FOR_EACH_BSI_IN_REVERSE (stack, bb, i)
> {
> tree stmt = bsi_stmt (i);
I *knew* someone else would find the IN_REVERSE macros useful :-)
Andrew