fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to fold (build1 (NEGATE_...
authorRoger Sayle <roger@eyesopen.com>
Mon, 26 Apr 2004 03:43:17 +0000 (03:43 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 26 Apr 2004 03:43:17 +0000 (03:43 +0000)
commit7c95f621b31f1366bd1276146783103e81b0eb7d
treee60d57cffadb2517757416b209a15cc1c170da02
parent29c246a7a7c5a90aa45a58924ddd1d6f67d1ba18
fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to fold (build1 (NEGATE_EXPR, ...)).

* fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
fold (build1 (NEGATE_EXPR, ...)).  Optimize X / -1 as -X and
X % -1 as 0.

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