diff options
author | iverbin <iverbin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-22 15:00:42 +0000 |
---|---|---|
committer | iverbin <iverbin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-07-22 15:00:42 +0000 |
commit | 5a43070dcb85787cfa4ea3d99f1d0ef9d0aed002 (patch) | |
tree | e3096eb4b928ba0354581d72f075114677f6c73a /gcc/ipa-cp.c | |
parent | 59c1507a8f0e7b132f2056c9fc4130ee5b166ee3 (diff) | |
download | gcc-5a43070dcb85787cfa4ea3d99f1d0ef9d0aed002.tar.gz |
2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
gcc/
* ipa-cp.c (determine_versionability): Do not create constprop clones,
when target_clones attribute is set.
gcc/testsuite/
* gcc.target/i386/mvc8.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238645 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 4b7f6bbf31c..5b6cb9a143f 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -533,6 +533,13 @@ determine_versionability (struct cgraph_node *node, coexist, but that may not be worth the effort. */ reason = "function has SIMD clones"; } + else if (lookup_attribute ("target_clones", DECL_ATTRIBUTES (node->decl))) + { + /* Ideally we should clone the target clones themselves and create + copies of them, so IPA-cp and target clones can happily + coexist, but that may not be worth the effort. */ + reason = "function target_clones attribute"; + } /* Don't clone decls local to a comdat group; it breaks and for C++ decloned constructors, inlining is always better anyway. */ else if (node->comdat_local_p ()) |