fold-const.c (negate_expr, [...]): New.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Sat, 27 Nov 1999 13:50:13 +0000 (13:50 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 27 Nov 1999 13:50:13 +0000 (08:50 -0500)
commit1baa375feaa22e3dbf6df7a066ba0d4a2b3a02d8
tree368881c3a9ecac0c1c9c28d7d35bd0a9485737fe
parenta8b64d6cf40a262116836ced24027faf5c39e5c6
fold-const.c (negate_expr, [...]): New.

* fold-const.c (negate_expr, associate_trees, extract_muldiv): New.
(split_tree): Completely rework to make more general.
(make_range, fold): Call negate_expr.
(fold, case NEGATE_EXPR): Simplify -(a-b) is -ffast-math.
(fold, associate): Call new split_tree and associate_trees.
(fold, case MULT_EXPR, case *_{DIV,MOD}_EXPR): Call extract_muldiv.

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