This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Constant fold -A - B as -B - A (take 3)


On Tue, Feb 18, 2003 at 07:05:39AM -0700, Roger Sayle wrote:
> 	* 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.

Ok.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]