This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Basic block reordering algorithm
On Wednesday 13 April 2005 22:52, Pat Haugen wrote:
> Back to the original problem with the algorithm using edge frequency vs.
> block frequency. Would you agree that the correct thing to do is fix the
> code so that it uses block frequency, especially since the patch of
> Zdenek's you referenced takes care of the original problem I saw when doing
> so?
My understanding of what you propose is that you want to use the dest
block frequency as the tie-breaker in the case that both edges have
the same probability. Right? I think this would be reasonable. Not
my decision to make, though ;-)
Gr.
Steven
P.S. I wonder why the code for the best edge in tracer.c:better_p is
not the same as the code in bb-reorder -- or why we have two trace
finding algorithms in one compiler... Honza??