On 04/11/2018 03:12 PM, Martin Liška wrote:
> 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?
> 2018-04-11 Martin Liska <mli...@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.