https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90094
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target| |x86_64-*-*, i?86-*-* Status|UNCONFIRMED |NEW Last reconfirmed| |2019-04-16 Component|target |rtl-optimization Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I guess this also applies to conditional branches. It might require to copy a to a scratch register in case it's value is live over the comparison (but then it saves a reg for the constant).