This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: How to detect whether we're inside of a loop??
- From: "S. Bosscher" <S dot Bosscher at student dot tudelft dot nl>
- To: 'Daniel Berlin ' <dberlin at dberlin dot org>, 'Geoff Keating ' <geoffk at geoffk dot org>
- Cc: "'Kaveh R. Ghazi '" <ghazi at caip dot rutgers dot edu>,"'gcc at gcc dot gnu dot org '" <gcc at gcc dot gnu dot org>
- Date: Wed, 09 Apr 2003 20:54:06 +0200
- Subject: RE: How to detect whether we're inside of a loop??
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?
Greetz
Steven