re PR tree-optimization/15255 ([tree-ssa] a * 2 + a * 2 is not converted to a * 4)
authorRichard Guenther <rguenther@suse.de>
Tue, 29 Apr 2008 15:59:43 +0000 (15:59 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 29 Apr 2008 15:59:43 +0000 (15:59 +0000)
commit1447bf0556ad0cb300aabd1b883fedee314b6fca
treec9e456f594c1a551adbd796e105d2374bafd6819
parent59e6913ad1743f76ca98421b9b5614caf96a7cf7
re PR tree-optimization/15255 ([tree-ssa] a * 2 + a * 2 is not converted to a * 4)

2008-04-29  Richard Guenther  <rguenther@suse.de>

PR middle-end/15255
* fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.

* gcc.dg/fold-plusmult.c: New testcase.

From-SVN: r134798
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-plusmult.c [new file with mode: 0644]