https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37239
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26163 Known to fail| | --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There is another case where this optimization can come into handy and shows up in SPEC 2006.: for (i = 1; i <= N; i++) { ... if (i < N) { ... } } This is inside hammer's inner most loop. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 [Bug 26163] [meta-bug] missed optimization in SPEC (2k and 2k6 and 95)