https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96289
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2020-07-27 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |jakub at gcc dot gnu.org, | |uros at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- That is true, but whether it is lea or add is decided only during split after reload, and the optimization where the cmov could use directly the result of earlier comparison rather than forcing it into a GPR is usually done during combine where it can't be done because of that.