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][4.2] Fix PR23294 (fold enhancement)


On Fri, 2005-08-26 at 15:49 +0200, Richard Guenther wrote:
> This fixes PR23294, a failure to fold a*2 + a at the tree level.  I took
> the chance to clean up and canonicalize folding of variants of
> A1*C1 + A2*C2 in a separate function.
> 
> Bootstrapped and regtested on x86_64-unknown-linux-gnu.
> 
> Ok for 4.2 once we branch?
> 
> Thanks,
> Richard.
> 
> 
> 2005-08-26  Richard Guenther  <rguenther@suse.de>
> 
> 	* fold-const.c (fold_plusminus_mult_expr): New function.
> 	(fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
> 	cases, remove now unnecessary code.
> 
> 	* gcc.dg/tree-ssa/pr23294.c: New testcase.
OK for 4.2.
jeff



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