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] Make redirection only for target_clones (PR ipa/85329).


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


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