]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (fold): Reassociate also (x - mult) + mult and (mult - x) + mult.
authorZdenek Dvorak <dvorakz@suse.cz>
Tue, 2 Nov 2004 21:31:20 +0000 (22:31 +0100)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Tue, 2 Nov 2004 21:31:20 +0000 (21:31 +0000)
commita63c0d13291b93a42e927d0356b2d9854c654337
treee48aabceb4bd08808fc31d0bf20e2e5d8949bada
parentde253ca48a960dd0d3ce5271c080afa3db69d7c0
fold-const.c (fold): Reassociate also (x - mult) + mult and (mult - x) + mult.

* fold-const.c (fold): Reassociate also (x - mult) + mult and
(mult - x) + mult.  Cast operands of expression after applying
distributive law to the correct types.  Apply distributive law
to a * c - b * c for all non-float types.

From-SVN: r90000
gcc/ChangeLog
gcc/fold-const.c