[tree-ssa]: out-of-ssa breaks if something adds a pred

Chris Lattner sabre@nondot.org
Fri Jun 6 20:13:00 GMT 2003


> > IMO, this is a failure of the edge insertion routines or the caller of
> > the
> > routine.
>
> Well, the caller can't know what the inserter did, and what to do to
> the possibly affected phi's.

OTOH, the inserter cannot possibly know how to update the PHI nodes, only
the caller can.  If the caller doesn't know how to update the PHI nodes,
something is seriously wrong.

> Plus, the current way we create phi nodes would mean that we'd have to
> rebuild all the phi's (their number of arguments is fixed at creation
> time). Diego, what to do here?

Why?  What are you trying to do that requires adding predecessors like
this?

-Chris

-- 
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/



More information about the Gcc mailing list