]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Simplify fold_build_pointer_plus callers in omp-expand
authorJakub Jelinek <jakub@redhat.com>
Mon, 1 Aug 2022 12:54:16 +0000 (14:54 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 1 Aug 2022 12:54:58 +0000 (14:54 +0200)
commite57ea617b3bd2fc0b0fff204787efa00ca7dcb91
tree9e49f6ea1b411c4ff301a2097507f598b56959da
parentc68a8f1a9672e21bd62a53b18d6f08c448e669ee
openmp: Simplify fold_build_pointer_plus callers in omp-expand

Tobias mentioned in PR106449 that fold_build_pointer_plus already
fold_converts the second argument to sizetype if it doesn't already
have an integral type gimple compatible with sizetype.

So, this patch simplifies the callers of fold_build_pointer_plus in
omp-expand so that they don't do those conversions manually.

2022-07-29  Jakub Jelinek  <jakub@redhat.com>

* omp-expand.cc (expand_omp_for_init_counts, expand_omp_for_init_vars,
extract_omp_for_update_vars, expand_omp_for_ordered_loops,
expand_omp_simd): Don't fold_convert second argument to
fold_build_pointer_plus to sizetype.

(cherry picked from commit 4796d16de657d7c2720471e61432de0f4a5cb6df)
gcc/ChangeLog.omp
gcc/omp-expand.cc