aboutsummaryrefslogtreecommitdiff
path: root/gcc/omp-grid.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/omp-grid.c')
-rw-r--r--gcc/omp-grid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/omp-grid.c b/gcc/omp-grid.c
index 898d73f..e7e18aa 100644
--- a/gcc/omp-grid.c
+++ b/gcc/omp-grid.c
@@ -1002,7 +1002,7 @@ grid_process_grid_body (gimple_stmt_iterator *gsi, bool *handled_ops_p,
*handled_ops_p = false;
gimple *stmt = gsi_stmt (*gsi);
if (gimple_code (stmt) == GIMPLE_OMP_FOR
- && (gimple_omp_for_kind (stmt) & GF_OMP_FOR_SIMD))
+ && gimple_omp_for_kind (stmt) == GF_OMP_FOR_KIND_SIMD)
{
gomp_for *loop = as_a <gomp_for *> (stmt);
tree clauses = gimple_omp_for_clauses (loop);
@@ -1030,14 +1030,14 @@ grid_eliminate_combined_simd_part (gomp_for *parloop)
memset (&wi, 0, sizeof (wi));
wi.val_only = true;
- enum gf_mask msk = GF_OMP_FOR_SIMD;
+ enum gf_mask msk = GF_OMP_FOR_KIND_SIMD;
wi.info = (void *) &msk;
walk_gimple_seq (gimple_omp_body (parloop), omp_find_combined_for, NULL, &wi);
gimple *stmt = (gimple *) wi.info;
/* We expect that the SIMD id the only statement in the parallel loop. */
gcc_assert (stmt
&& gimple_code (stmt) == GIMPLE_OMP_FOR
- && (gimple_omp_for_kind (stmt) == GF_OMP_FOR_SIMD)
+ && (gimple_omp_for_kind (stmt) == GF_OMP_FOR_KIND_SIMD)
&& gimple_omp_for_combined_into_p (stmt)
&& !gimple_omp_for_combined_p (stmt));
gomp_for *simd = as_a <gomp_for *> (stmt);