How to detect whether we're inside of a loop??

Jan Hubicka jh@suse.cz
Wed Apr 9 19:19:00 GMT 2003


> Daniel Berlin wrote:
> > On Wednesday, April 9, 2003, at 02:25  PM, Geoff Keating wrote:
> > > Why don't you just use the support that GCC already has for
> > > detecting the probability that a block will be executed?
> > 
> > Because it's at the tree level he's talking about, not the RTL
> > level.
> 
> FWIW, once tree-ssa-vrp is implemented, you get branch
> prediction with it for free.  Would that help?
Definitly :)
We already do have branch prediction algorithm at RTL level.  I would
like to port it to tree-ssa as soon as we realize how to maintain the
profile over RTL expansion....

Honza
> 
> Greetz
> Steven



More information about the Gcc mailing list