[PATCH] Small speedup to ifcvt

Andrew Pinski pinskia@physics.uc.edu
Wed Nov 17 20:36:00 GMT 2004


I noticed this while profiling the testsuite.  Counting edges are no 
longer
needed to be done in a loop, it is just a simple EDGE_COUNT (edges).
Second moving a check up for the count can speed up as we no longer
have to loop over the edges if we reject it because of the number of
edges is wrong.

OK? Bootstrapped and tested on powerpc-darwin.

Thanks,
Andrew Pinski

ChangeLog:

	* ifcvt.c (find_if_block): Move the check for the number of edges
	above the loops checking for complex edges.
	Remove the counting of edges as we use EDGE_COUNT now.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: speedupIfCVT.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20041117/bb40d142/attachment.txt>


More information about the Gcc-patches mailing list