This is the mail archive of the gcc-patches@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: [PATCH] Pass manager: add support for termination of pass list


On Tue, Oct 20, 2015 at 3:00 PM, Martin LiÅka <mliska@suse.cz> wrote:
> Hello.
>
> As part of upcoming merge of HSA branch, we would like to have possibility to terminate
> pass manager after execution of the HSA generation pass. The HSA back-end is implemented
> as a tree pass that directly emits HSAIL from gimple tree representation. The pass operates
> on clones created by HSA IPA pass and the pass manager should stop execution of further
> RTL passes.
>
> Suggested patch survives bootstrap and regression tests on x86_64-linux-pc.
>
> What do you think about it?

Are you sure it works this way?

Btw, you will miss executing of all the cleanup passes that will
eventually free memory
associated with the function.  So I'd rather support a
TODO_discard_function which
should basically release the body from the cgraph.

Richard.

> Thanks,
> Martin


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