re PR target/93002 (while(i--) optimization)
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Dec 2019 08:22:46 +0000 (09:22 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Dec 2019 08:22:46 +0000 (09:22 +0100)
commit99675d5c4581c5ac01118ab64785fde1f7f25183
tree6d3e440127e9c7335d1901af2357afb18938a049
parent9be3ac5d63f0f0d79d220bb3a10842b28a1e48ad
re PR target/93002 (while(i--) optimization)

PR target/93002
* config/i386/i386.md (dec reg; cmp $-1, reg; jne lab): New
define_peephole2.

* gcc.target/i386/pr93002.c: New test.

From-SVN: r279632
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr93002.c [new file with mode: 0644]