openmp: Fix two pastos in non-rect loop OpenMP lowering.
authorJakub Jelinek <jakub@redhat.com>
Wed, 24 Jun 2020 08:25:37 +0000 (10:25 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 24 Jun 2020 08:25:37 +0000 (10:25 +0200)
2020-06-24  Jakub Jelinek  <jakub@redhat.com>

* omp-low.c (lower_omp_for): Fix two pastos.

gcc/omp-low.c

index 8bfdfbc..da6c275 100644 (file)
@@ -10579,7 +10579,7 @@ lower_omp_for (gimple_stmt_iterator *gsi_p, omp_context *ctx)
            TREE_VEC_ELT (*rhs_p, 1)
              = get_formal_tmp_var (TREE_VEC_ELT (*rhs_p, 1), &cnt_list);
          if (!is_gimple_min_invariant (TREE_VEC_ELT (*rhs_p, 2)))
-           TREE_VEC_ELT (*rhs_p, 1)
+           TREE_VEC_ELT (*rhs_p, 2)
              = get_formal_tmp_var (TREE_VEC_ELT (*rhs_p, 2), &cnt_list);
        }
       else if (!is_gimple_min_invariant (*rhs_p))
@@ -10594,7 +10594,7 @@ lower_omp_for (gimple_stmt_iterator *gsi_p, omp_context *ctx)
            TREE_VEC_ELT (*rhs_p, 1)
              = get_formal_tmp_var (TREE_VEC_ELT (*rhs_p, 1), &cnt_list);
          if (!is_gimple_min_invariant (TREE_VEC_ELT (*rhs_p, 2)))
-           TREE_VEC_ELT (*rhs_p, 1)
+           TREE_VEC_ELT (*rhs_p, 2)
              = get_formal_tmp_var (TREE_VEC_ELT (*rhs_p, 2), &cnt_list);
        }
       else if (!is_gimple_min_invariant (*rhs_p))