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: [RFA] Jump threading stats


On Mon, 2005-06-06 at 10:30 -0400, Diego Novillo wrote:
> Jeff, does this do what I mean it to do?
> 
> 
> Thanks.  Diego.
> 
> 
> 	* tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
> 	(thread_stats): New local variable.
> 	(thread_block): Increment count of threaded edges.
> 	(thread_through_all_blocks): Initialize thread_stats.
> 	Display number of threaded jumps if TDF_STATS is enabled.

If you want to count the number of jumps threaded, it would be better
to do so within the loop over rd->incoming_edges within redirect_edges.
You'll already find some code in there which dumps information about
which jumps were threaded.  Just bump your little counter inside
that loop.

jeff 



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