aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-06-24 10:25:37 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:14:39 -0300
commit0d151cf71a4be3fc0c915c626c9734ce52a7ca24 (patch)
treef426330dfceb4a39ef101a43adefbcdca8553c98 /gcc
parentdf7d61bcf84c7e5be7c4d05c31e68bd1250f94f0 (diff)
downloadgcc-0d151cf71a4be3fc0c915c626c9734ce52a7ca24.zip
gcc-0d151cf71a4be3fc0c915c626c9734ce52a7ca24.tar.gz
gcc-0d151cf71a4be3fc0c915c626c9734ce52a7ca24.tar.bz2
openmp: Fix two pastos in non-rect loop OpenMP lowering.
2020-06-24 Jakub Jelinek <jakub@redhat.com> * omp-low.c (lower_omp_for): Fix two pastos.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/omp-low.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/omp-low.c b/gcc/omp-low.c
index 8bfdfbc..da6c275 100644
--- a/gcc/omp-low.c
+++ b/gcc/omp-low.c
@@ -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))