This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix FP reassociation #2
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Feb 2008 15:15:28 +0100 (CET)
- Subject: Re: [PATCH] Fix FP reassociation #2
- References: <Pine.LNX.4.64.0802201324500.5150@zhemvz.fhfr.qr>
On Wed, 20 Feb 2008, Richard Guenther wrote:
>
> While we honor flag_associative_math in the fold_binary re-association
> code, split_tree which is used by it unconditionally bails out for
> FP types.
>
> Bootstrap and regtest in progress, I'll apply this if it succeeds.
>
> Richard.
>
> 2008-02-20 Richard Guenther <rguenther@suse.de>
>
> * fold-const.c (split_tree): Associate floatig-point expressions
> if flag_associative_math is set.
>
> * gcc.dg/fold-reassoc-1.c: New testcase.
Actually that needs adjustment of gcc.dg/tree-ssa/recip-3.c to
not compute d/d.
Committed with that change.
Richard.