https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124624
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |rtl-optimization
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Keywords| |missed-optimization
Last reconfirmed| |2026-03-24
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. RTL performs basic block re-ordering and that should catch this.
But I don't remember whether it can invert branches.