This is the mail archive of the gcc@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]

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

aldy

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