aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2016-01-26 14:32:30 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2016-01-26 14:32:30 +0000
commitf8393eb0f07d5a4d911550beb9d052e14d6f3847 (patch)
treeef6837a596586f05759a87232a7af5562f07e08f /gcc/tree-ssa-loop.c
parentb0b35f86a24b8c404590993d7811fe546fadf1eb (diff)
downloadgcc-f8393eb0f07d5a4d911550beb9d052e14d6f3847.zip
gcc-f8393eb0f07d5a4d911550beb9d052e14d6f3847.tar.gz
gcc-f8393eb0f07d5a4d911550beb9d052e14d6f3847.tar.bz2
omp-low.h (oacc_fn_attrib_kernels_p): Declare.
* omp-low.h (oacc_fn_attrib_kernels_p): Declare. (set_oacc_fn_attrib): Add IS_KERNEL arg. * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg. (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New. (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib. (oacc_validate_dims): Add LEVEL arg, don't return level. (new_oacc_loop_routine): Use oacc_fn_attrib_level, not oacc_validate_dims. (execute_oacc_device_lower): Adjust, add more dump output. * tree-ssa-loop.c (gate_oacc_kernels): Use oacc_fn_attrib_kernels_p. * tree-parloops.c (create_parallel_loop): Adjust set_oacc_fn_attrib call. From-SVN: r232830
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r--gcc/tree-ssa-loop.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c
index de09aa9..bdbade5 100644
--- a/gcc/tree-ssa-loop.c
+++ b/gcc/tree-ssa-loop.c
@@ -154,12 +154,7 @@ gate_oacc_kernels (function *fn)
tree oacc_function_attr = get_oacc_fn_attrib (fn->decl);
if (oacc_function_attr == NULL_TREE)
return false;
-
- tree val = TREE_VALUE (oacc_function_attr);
- while (val != NULL_TREE && TREE_VALUE (val) == NULL_TREE)
- val = TREE_CHAIN (val);
-
- if (val != NULL_TREE)
+ if (!oacc_fn_attrib_kernels_p (oacc_function_attr))
return false;
struct loop *loop;