This is the mail archive of the gcc@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: Difference between 'FOR_EACH_BB' and 'for (i=0; i<n_basic_blocks; i++){}'


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.


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