Re:“Fiercely resist any further broadening of the scope of t...
by dumael on Thursday April 14, 2016 @06:35PM
(#11500832)
One option in GCC I'm aware of is -faggressive-loop-optimizations . Quoting the manual "This option tells the loop optimizer to use language constraints to derive bounds for the number of iterations of a loop. This assumes that loop code does not invoke undefined behavior by for example causing signed integer overflows or out-of-bound array accesses. The bounds for the number of iterations of a loop are used to guide loop unrolling and peeling and loop exit test optimizations. This option is enabled by default. "
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html