]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 9 Feb 2021 18:09:02 +0000 (10:09 -0800)
2020-06-24  Jakub Jelinek  <jakub@redhat.com>

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

(cherry picked from commit f0008858dec9b16da153b948834abb20b9f1ab32)

gcc/ChangeLog.omp
gcc/omp-low.c

index edaf0dd7c692e727f5e04d8e31244fa26d9843c4..66042280310aeefe7510b537e50f8220079cafd0 100644 (file)
@@ -1,3 +1,10 @@
+2021-02-09  Kwok Cheung Yeung  <kcy@codesourcery.com>
+
+       Backport from mainline
+       2020-06-24  Jakub Jelinek  <jakub@redhat.com>
+
+       * omp-low.c (lower_omp_for): Fix two pastos.
+
 2021-02-09  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
        Backport from mainline
index c5279646ff39589d762ceda73066afba3b292950..03372f93f4e2a6b928d19f5e5a2edcfc9190b50e 100644 (file)
@@ -11236,7 +11236,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))
@@ -11251,7 +11251,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))