]> git.ipfire.org Git - thirdparty/gcc.git/commit
fold-const.c (negate_expr_p): New function to determine whether an expression can...
authorRoger Sayle <roger@eyesopen.com>
Tue, 18 Feb 2003 19:37:01 +0000 (19:37 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 18 Feb 2003 19:37:01 +0000 (19:37 +0000)
commit080ea642c0b75fe30d551afe5e3ab0ab70e78720
tree0ee4094bf8509462d5d0eb24bc8180303c0134d1
parente360ab394f9e67d79095b9d01fc1d68af0007bbc
fold-const.c (negate_expr_p): New function to determine whether an expression can be negated cheaply.

* fold-const.c (negate_expr_p): New function to determine whether
an expression can be negated cheaply.
(fold) [MINUS_EXPR]: Use it to determine whether to transform
-A - B into -B - A for floating point types.

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