This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ipa-cp heuristics fixes
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org, Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- Date: Wed, 16 Dec 2015 20:15:12 +0100
- Subject: Re: ipa-cp heuristics fixes
- Authentication-results: sourceware.org; auth=none
- References: <20151210073037 dot GA40772 at kam dot mff dot cuni dot cz> <20151216091559 dot GA19138 at linux dot vnet dot ibm dot com> <20151216162425 dot GA37380 at kam dot mff dot cuni dot cz> <20151216162858 dot GO18720 at tucnak dot redhat dot com> <20151216171533 dot GP5527 at kam dot mff dot cuni dot cz> <20151216173744 dot GP18720 at tucnak dot redhat dot com>
Hi,
just to summarize a discussion on IRC. The problem is that we produce debug
statements for eliminated arguments only in ipa-sra and ipa-split, while we
don't do anything for cgraph clones. This is a problem on release branches,
too.
It seems we have all the necessary logic, but the callee modification code from
ipa-split should be moved to tree_function_versioning (which is used by both
ipa-split and cgraph clone mechanizm) and caller modifcation copied to
cgraph_edge::redirect_call_stmt_to_callee.
I am trying to do that. It seems bit difficult as the caller and callee
modifications are tied together and I do not know how chaining of
transfomraitons is going to work.
Honza