https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95018
--- Comment #14 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Most Fortran arrays are one- or two-dimensional. Assuming a 10*10 two-dimensional array that is being packed, the condition will be tested 121 times and the loop body will be entered 12 times. Only once will it run two times. So, unrolling is definitely not good here.