diff options
| author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-07 15:35:40 +0000 |
|---|---|---|
| committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-07 15:35:40 +0000 |
| commit | 2169cab63dc0d14e77ca5dec5195f1ac243c2a34 (patch) | |
| tree | 04db5646c3835e0841ea50cc2a2ab2d6036b7d68 /libjava/java | |
| parent | 093936a98e5c8c71174def8366e8cce4b5a17d57 (diff) | |
| download | ppe42-gcc-2169cab63dc0d14e77ca5dec5195f1ac243c2a34.tar.gz ppe42-gcc-2169cab63dc0d14e77ca5dec5195f1ac243c2a34.zip | |
* fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
either (-A)-B or (-B)-A, if A or B is easily negated respectively.
(fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
integer types and floating point with unsafe_math_optimizations.
Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
Optimize A - B as A + (-B), if B is easily negated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77453 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
0 files changed, 0 insertions, 0 deletions

