https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87895
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Nov 20 20:44:38 2018 New Revision: 266328 URL: https://gcc.gnu.org/viewcvs?rev=266328&root=gcc&view=rev Log: PR tree-optimization/87895 * omp-simd-clone.c (ipa_simd_modify_function_body): When removing or replacing GIMPLE_RETURN, set EDGE_FALLTHRU on the edge to EXIT. (simd_clone_adjust): Don't set EDGE_FALLTHRU here. In a loop that redirects edges to EXIT to edges to incr_bb, iterate while EXIT has any preds and always use EDGE_PRED (, 0). * gcc.dg/gomp/pr87895-1.c: New test. * gcc.dg/gomp/pr87895-2.c: New test. * gcc.dg/gomp/pr87895-3.c: New test. Added: trunk/gcc/testsuite/gcc.dg/gomp/pr87895-1.c trunk/gcc/testsuite/gcc.dg/gomp/pr87895-2.c trunk/gcc/testsuite/gcc.dg/gomp/pr87895-3.c Modified: trunk/gcc/ChangeLog trunk/gcc/omp-simd-clone.c trunk/gcc/testsuite/ChangeLog