OSDN Git Service

2008-04-29 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Apr 2008 15:59:43 +0000 (15:59 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Apr 2008 15:59:43 +0000 (15:59 +0000)
commitf4cd9b29e57a095e0c0a3e431733a5e58cbd0399
treec9e456f594c1a551adbd796e105d2374bafd6819
parentd0cfbbf21962a7fab6ad56f56ee3739188338c20
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134798 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-plusmult.c [new file with mode: 0644]