Simple reassoc transforms in match.pd
authorMarc Glisse <marc.glisse@inria.fr>
Tue, 27 Jun 2017 09:42:38 +0000 (11:42 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Tue, 27 Jun 2017 09:42:38 +0000 (09:42 +0000)
commit1e7df2e63a369ffcc658dd5e1e3d57dabaa017c2
treed28a305d3ebd2b2fe57a0c6fb6116646e7bc98ea
parenta889d6aa2730c084c338576b5a133134f142ce88
Simple reassoc transforms in match.pd

2017-06-27  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.

gcc/testsuite/
* gcc.dg/tree-ssa/assoc-1.c: New file.

From-SVN: r249686
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/assoc-1.c [new file with mode: 0644]