https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105781
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |middle-end Keywords| |missed-optimization --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Unrolling happens with -funroll-loops really. Gcc does some unrolling by default at -O2 and some more at -O3 but you need the extra flag to get the most really.