disabling branch probability guessing (patch) [another patch]

Aldy Hernandez aldyh@redhat.com
Tue Jan 23 07:16:00 GMT 2001


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" :).

aldy


More information about the Gcc mailing list