NOP conversions in X+CST+CST
authorMarc Glisse <marc.glisse@inria.fr>
Wed, 21 Jun 2017 11:16:27 +0000 (13:16 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Wed, 21 Jun 2017 11:16:27 +0000 (11:16 +0000)
commited73f46f30cabeea4de64e7cce0682a7a610ffb6
treed7d3b962f704495dcb135053bb1c5c4b75a8b6c2
parent6d522731379693a5107328079b804ecd2fbd4766
NOP conversions in X+CST+CST

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

gcc/
* match.pd (nop_convert): New predicate.
((A +- CST1) +- CST2): Allow some NOP conversions.

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

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