[PATCH] Fix FP reassociation #2
Richard Guenther
rguenther@suse.de
Wed Feb 20 14:35:00 GMT 2008
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.
More information about the Gcc-patches
mailing list