Allow some NOP conversions in (X+CST1)+CST2 in match.pd
authorMarc Glisse <marc.glisse@inria.fr>
Thu, 25 May 2017 08:45:48 +0000 (10:45 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Thu, 25 May 2017 08:45:48 +0000 (08:45 +0000)
commit11d6b45d431b0aa30cf5ce3941b01ba4fd342af5
tree30846871027092d0e1d084d5e2b5812c8c5e3518
parent10bc8017a3028c291e7b85486bc66bfc12b5f377
Allow some NOP conversions in (X+CST1)+CST2 in match.pd

2017-05-25  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* match.pd ((A +- CST1) +- CST2): Allow some conversions.
* tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.

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

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