Commit 69a71a6d by Martin Jambor Committed by Martin Jambor

[hsa] Exclude parallel outlines from hsa_callable_functions_p

2016-12-09  Martin Jambor  <mjambor@suse.cz>

	* hsa.c (hsa_callable_function_p): Return false for artificial
	functions.

From-SVN: r243184
parent 04c452f4
2016-12-09 Martin Jambor <mjambor@suse.cz>
* hsa.c (hsa_callable_function_p): Return false for artificial
functions.
2016-12-02 James Greenhalgh <james.greenhalgh@arm.com> 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
PR rtl-optimization/78561 PR rtl-optimization/78561
...@@ -90,7 +90,10 @@ bool ...@@ -90,7 +90,10 @@ bool
hsa_callable_function_p (tree fndecl) hsa_callable_function_p (tree fndecl)
{ {
return (lookup_attribute ("omp declare target", DECL_ATTRIBUTES (fndecl)) return (lookup_attribute ("omp declare target", DECL_ATTRIBUTES (fndecl))
&& !lookup_attribute ("oacc function", DECL_ATTRIBUTES (fndecl))); && !lookup_attribute ("oacc function", DECL_ATTRIBUTES (fndecl))
/* At this point, this is enough to identify clones for
parallel, which for HSA would need to be kernels anyway. */
&& !DECL_ARTIFICIAL (fndecl));
} }
/* Allocate HSA structures that are are used when dealing with different /* Allocate HSA structures that are are used when dealing with different
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment