This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Improve removal of statements when removing blocks


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]