]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/41514 (redundant compare instruction of consecutive conditional branches)
authorBernd Schmidt <bernd.schmidt@codesourcery.com>
Fri, 16 Apr 2010 09:42:32 +0000 (09:42 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Fri, 16 Apr 2010 09:42:32 +0000 (09:42 +0000)
commit6ea007e447876a49b7ea271d0bdee721e6b98cef
tree9049fc03e8bcf8a31faf13f9fdffe9a4b1fdf3c3
parent6ddfdb0f7e310a026479c484e32d020b1cbeedf8
re PR target/41514 (redundant compare instruction of consecutive conditional branches)

PR target/41514
* config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
If the previous insn is a cbranchsi4_insn with the same arguments,
omit the compare instruction.

PR target/41514
gcc.target/arm/thumb-comparisons.c: New test.

From-SVN: r158404
gcc/ChangeLog
gcc/config/arm/arm.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/thumb-comparisons.c [new file with mode: 0644]