https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103208
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:47de0b56ee455ec82ec7d61a20988f11b67aa4e9 commit r12-5295-g47de0b56ee455ec82ec7d61a20988f11b67aa4e9 Author: Jakub Jelinek <ja...@redhat.com> Date: Tue Nov 16 10:19:22 2021 +0100 openmp: Regimplify operands of GIMPLE_COND in a few more places [PR103208] As the testcase shows, the non-rectangular loop expansion code didn't try to regimplify operands of GIMPLE_CONDs it built in some cases. I have added a helper function which does that and used it in some places that were regimplifying already to simplify those spots, plus added it in a couple of other places where it was needed. 2021-11-16 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/103208 * omp-expand.c (expand_omp_build_cond): New function. (expand_omp_for_init_counts, expand_omp_for_init_vars, expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Use it. * c-c++-common/gomp/loop-11.c: New test.