This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Difference between 'FOR_EACH_BB' and 'for (i=0; i<n_basic_blocks; i++){}'
- From: Diego Novillo <dnovillo at redhat dot com>
- To: sean yang <seanatpurdue at hotmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 01 Jun 2006 14:51:54 -0400
- Subject: Re: Difference between 'FOR_EACH_BB' and 'for (i=0; i<n_basic_blocks; i++){}'
- References: <BAY105-F5D2323609DCD2B8A30616C0900@phx.gbl>
sean yang wrote on 06/01/06 14:44:
> 'for (i=0; i<n_basic_blocks; i++){bb=BASIC_BLOCK(i);}' traverses accoring to the
> BB's index (because BASIC_BLOCK(i)->index ==i)
>
The first form may take you to a NULL basic block. See expunge_block.