This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Frontend pass assumptions
On Fri, Sep 10, 2010 at 4:06 PM, Paulo J. Matos <pocmatos@gmail.com> wrote:
> Richard Guenther <richard.guenther@gmail.com> writes:
>
>>
>> Which is wrong. ?You need to use block_stmt_iterator and
>> bsi_remove and ... (I don't remember, 4.3 is so old).
>>
>
> Or I could move the pass to be executed before the CFG is created. Would
> there be any issues with this?
Yes. Profile information is not available at that point.
> Regarding passes execution order. It seems on one hand that passes
> execution order would be determined by GCC during runtime depending on
> the properties required and provided by each pass. But on the other
> passes.c seem to schedule the passes explicitly through NEXT_PASS().
> Could you just briefly tell me how passes are actually scheduled?
They are scheduled statically specified by the schedule initialized
in passes.c.
Richard.
> --
> PMatos
>
>