https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118055
--- Comment #1 from Hongtao Liu <liuhongt at gcc dot gnu.org> --- I explained in the thread. https://gcc.gnu.org/pipermail/gcc-patches/2024-December/671289.html ------------- BTW arm ci reported 2 regressed testcase so I added * gcc.dg/tree-ssa/pr83403-1.c: Add --param max-completely-peeled-insns=300 for arm*-*-*. * gcc.dg/tree-ssa/pr83403-2.c: Ditto. For 32-bit arm, there're more stmts in the innermost loop, and removal of the reduction prevents completely unrolling for them. For aarch64, it looks fine. ------------- So the fix for cris-elf/m68k could be similar as arm.