https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105855
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You could in theory version the loop for the no overflow case. Now is the question becomes is it worth the cost of implementing it in the compiler. I doubt it.