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: [PATCH] Change bb-reorder.c to use succ block frequency


>>>>> Richard Henderson writes:

Richard> Why?  It seems to me that edge frequency is what's going to matter
Richard> to the cpu when considering the branch.  Particularly for cpus that
Richard> don't have horrendously sophisticated branch predictors.

	From Pat's original message:

"Since edge frequency is based off the source block's frequency (src blk
freq * edge prob), this means the code in better_edge_p() which compares
frequencies if edge probabilities are equivalent is useless (if
probabilities are equivalent then the edge frequencies will also be
equivalent since they're based off the same block frequency)."

http://gcc.gnu.org/ml/gcc/2005-04/msg00638.html


David


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