https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94798
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |3507 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #4) > As for the subtraction followed by comparison, I think this is something > normally optimized through peephole2, but that one doesn't trigger in this > case due to RA decisions, where it sees different operands: This is basically PR 3507. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3507 [Bug 3507] appalling optimisation with sub/cmp on multiple targets