(fold, case PLUS_EXPR, MINUS_EXPR): Apply distributive law to multiplication.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 26 Jun 1993 15:55:06 +0000 (11:55 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 26 Jun 1993 15:55:06 +0000 (11:55 -0400)
commit6a96fcb4958d449901e87d75d08b4e8eede54e1b
tree88e7590ac3c9554b358cc0c8203a6c406c4972e9
parentf62f398a28629937d937cae5bbc43e2d1e76e967
(fold, case PLUS_EXPR, MINUS_EXPR): Apply distributive law to multiplication.

(fold, case *_DIV_EXPR): Replace code to handle (A*C1)/C2 with more general
code to handle addition as well.
(fold, case *_MOD_EXPR): Add simplified version of above code.

From-SVN: r4757
gcc/fold-const.c