]> git.ipfire.org Git - thirdparty/gcc.git/commit
[combine][v2] Canonicalise (r + r) to (r << 1) to aid recognition
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 5 Jan 2016 16:06:06 +0000 (16:06 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 5 Jan 2016 16:06:06 +0000 (16:06 +0000)
commita0866effcd38476b14e96b069ac697e08f5f5b79
tree2b0e98778dcdae9cd360e0673ccdbcb12c249605
parentc589e975638b217501e4e868e7d706bb318e18e9
[combine][v2] Canonicalise (r + r) to (r << 1) to aid recognition

PR rtl-optimization/68651
* combine.c (combine_simplify_rtx): Canonicalize x + x into
x << 1.

* gcc.target/aarch64/pr68651_1.c: New test.

From-SVN: r232077
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/pr68651_1.c [new file with mode: 0644]