This is the mail archive of the
mailing list for the GCC project.
Re: disabling branch probability guessing (patch) [another patch]
On Mon, Jan 22, 2001 at 08:51:58PM -0800, Tim Prince wrote:
> I've been fighting a lonely battle for "predicting" (or favoring) the
> branch which leads to iteration. Some of the current compilers do a
> lousy job of
The Ball and Larus paper referenced in predict.c has a heuristic (loop
heuristic) for choosing the path that executes rather than avoids a loop--
regardless of loop direction.
This will probably do what you want and I'm going to start working on
loop, call, and return heuristics "real soon now" :).