https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117243
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Estimating sizes for loop 2 BB: 3, after_exit: 0 BB: 4, after_exit: 0 size: 0-0, last_iteration: 0-0 Loop size: 0 Estimated size after unrolling: 1 ;; Guessed iterations of loop 2 is 200.999984. New upper bound 2. ;; Scaling loop 2 with scale 1.5% (guessed) to reach upper bound 2 ;; Not updating exit probability of loop 2; it has no single exit /app/example.cpp:17:5: optimized: loop with 2 iterations completely unrolled (header execution count 1073741823) Latch of last iteration was marked by __builtin_unreachable ().