This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Make redirection only for target_clones (PR ipa/85329).
- From: Martin Liška <mliska at suse dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jan Hubicka <hubicka at ucw dot cz>
- Date: Wed, 11 Apr 2018 15:42:00 +0200
- Subject: Re: [PATCH] Make redirection only for target_clones (PR ipa/85329).
- References: <5657d636-a35d-d4f8-d264-ebdbb606a0e4@suse.cz>
On 04/11/2018 03:12 PM, Martin Liška wrote:
> Hi.
>
> Following restricts cgraph redirection done in multiple_target.c just
> to clones that are created in the IPA pass.
>
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
> Ready to be installed?
> Martin
>
> gcc/ChangeLog:
>
> 2018-04-11 Martin Liska <mliska@suse.cz>
>
> PR ipa/85329
> * multiple_target.c (create_dispatcher_calls): Rename to ...
> (redirect_target_clone_callers): ... this.
> (expand_target_clones): Record created clones.
> (ipa_target_clone): Call redirect_target_clone_callers only
> for these clones.
> ---
> gcc/multiple_target.c | 25 +++++++++++++++----------
> 1 file changed, 15 insertions(+), 10 deletions(-)
>
>
So the patch is not sufficient for the original test-case. I'm reducing that
and will enhance the patch.
Martin