[Bug target/93002] while(i--) optimization
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Dec 19 05:56:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93002
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86_64-linux-gnu
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With -fno-ivopts we get:
movl $1000, %edx
movl $999, %eax
.p2align 4,,10
.p2align 3
.L2:
movl %eax, sink(%rip)
subl $1, %eax
subl $1, %edx
jne .L2
ret
More information about the Gcc-bugs
mailing list