[tree-ssa] Insert on edge comment

Daniel Berlin dberlin@dberlin.org
Mon Jun 2 21:47:00 GMT 2003



On Mon, 2 Jun 2003, Chris Lattner wrote:

> On Mon, 2 Jun 2003, [iso-8859-1] Pop Sébastian wrote:
>
> > This is the facet of "instruction stream controlled by the CFG", rather
> > than the classic view of "trees over which we keep up to date the CFG".
> >
> > If I'm not wrong this is still one of the major advantages of the
> > representation that LLVM has over the current status of tree-ssa.  Chris?
>
> Yup, this is how we do it in LLVM.  It was worked out quite well for us,
> and makes things like successors/predecessors of a basic block extremely
> easy to find... making just about every CFG based analysis and
> optimization simpler.  I highly recommend things like loop expressions, if
> expressions and switch statements be lowered down into the equivilent
> "conditional branch", "unconditional branch", and "multi-way branch"
> instructions...

This would solve the whole fun with "insert after while statement at end
of block" stuff i deal with.
It's only because of the special semantics of the "while" statement that
this occurs in the first place.
If it was just a simple jump, we'd insert before. But it's a whole magic
expression with a body and whatnot.



More information about the Gcc mailing list