Simplify creation of target_clones (PR lto/66295)
commit4c1ced117c785de52305717878fa6b1e40b2bbda
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Feb 2017 15:22:47 +0000 (3 15:22 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Feb 2017 15:22:47 +0000 (3 15:22 +0000)
treefab289c285703064b0e0cefe1edc142fb8fff07c
parentfb7237602c198fb128ab5029963d2b105f16424b
Simplify creation of target_clones (PR lto/66295)

2017-02-03  Martin Liska  <mliska@suse.cz>

PR lto/66295
* multiple_target.c (create_dispatcher_calls): Redirect edge
from a caller of a dispatcher.
(expand_target_clones): Make the clones local.
(ipa_target_clone): Do both target clones and resolvers.
(ipa_dispatcher_calls): Remove the pass.
(pass_dispatcher_calls::gate): Likewise.
(make_pass_dispatcher_calls): Likewise.
* passes.def (pass_target_clone): Put as very first IPA early
pass.
2017-02-03  Martin Liska  <mliska@suse.cz>

PR lto/66295
* gcc.target/i386/mvc9.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245155 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/multiple_target.c
gcc/passes.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/mvc9.c [new file with mode: 0644]