This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to obtain SSA form


Andrea Callia D'Iddio wrote:
> I looked for "into" and "ssa" in passes.c, but I've not found
> anything.

"into" does not give much indeed.  But ssa should point you to
pass_build_ssa and pass_del_ssa, which should reveal a lot.

> Also I tried with options -fdump-tree-ssa and -O1 but, when
> my pass is executed, code is only in GIMPLE form (in this last case a
> file with code in SSA form is written, but I don't need a file, I'd
> like that basic blocks contain code in SSA form).
> Maybe the problem is that my pass is executed in a point in which SSA
> form is not available. So the question is: when have I to execute my
> passe? (i.e. where have I to put NEXT_PASS macro?) Are there also
> other parameters or flags to be set?

The question has been answered approx. last week in this mailing list.

Anyway, yes, -O1 is needed or SSA optimizations are not done.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]