[tree-ssa] RFC: Making control flow more explicit

Zdenek Dvorak rakdver@atrey.karlin.mff.cuni.cz
Mon Aug 11 20:04:00 GMT 2003


Hello,

> In the new lowered IR, would there be a simple high level way to detect

yes, see cfgloop.c.

> and
> work with loops and loop nests, to duplicate loops, etc?

yes, in fact it will IMHO be much easier than now as you will be able
to just play with cfg in any way you want, without care of handling
the underlying structured expressions.

> Is there going to
> be something that marks that a certain CFG region is a loop / a loop with a
> single exit, etc? (I'm sure you had loop transformations in mind when you
> designed this low-GIMPLE IR, I'm trying to get an idea on how optimizations
> on loops would look like).

yes, again see cfgloop.c + cfgloopmanip.c.  Also some stuff done on
rtlopt branch loop optimizer could be useful to check.

Zdenek



More information about the Gcc mailing list