https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110991
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- What is interesting is -O3 unrolls the loop in cunroll and the loop becomes a nothing as everything can be almost constant folded away ... Maybe that is something which can be tuned for -O2 and unrolling ...