diff options
author | Martin Jambor <mjambor@suse.cz> | 2017-01-11 11:35:31 +0100 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2017-01-11 11:35:31 +0100 |
commit | 51020892466d37f71ee13137bdadcbb32545c55d (patch) | |
tree | f2d05c5ca8dd4a860cc74dd72658a92146d66d22 /gcc/ipa-hsa.c | |
parent | 80c74722bc934e376b06fa2e59925cb134202266 (diff) | |
download | gcc-51020892466d37f71ee13137bdadcbb32545c55d.tar.gz |
[hsa] Fix hsa function cloning test
2017-01-11 Martin Jambor <mjambor@suse.cz>
* hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
test.
* ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
decorated functions.
From-SVN: r244308
Diffstat (limited to 'gcc/ipa-hsa.c')
-rw-r--r-- | gcc/ipa-hsa.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ipa-hsa.c b/gcc/ipa-hsa.c index 4391b580566..6a3f660672e 100644 --- a/gcc/ipa-hsa.c +++ b/gcc/ipa-hsa.c @@ -100,7 +100,10 @@ process_hsa_functions (void) clone->name (), s->m_kind == HSA_KERNEL ? "kernel" : "function"); } - else if (hsa_callable_function_p (node->decl)) + else if (hsa_callable_function_p (node->decl) + /* At this point, this is enough to identify clones for + parallel, which for HSA would need to be kernels anyway. */ + && !DECL_ARTIFICIAL (node->decl)) { if (!check_warn_node_versionable (node)) continue; |