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] restore bootstrap on ppc


> 
> 	* fold-const.c (extract_muldiv_1): Do not simplify
> 	var * c * c to var.

Hi,
it looks like this is only performance related patch that might've
caused today regression on gzip and gcc:
http://www.suse.de/~gcctest/SPEC-britten/CINT/sandbox-britten/recent.html
http://www.suse.de/~gcctest/SPEC-britten/CINT/sandbox-britten/200709111625.int/
It seems quite serious, so hopefully there is way around (or it might be
a noise even if there was no changes in setup, we should see next run
relatively shortly)

Honza
> 
> Index: fold-const.c
> ===================================================================
> *** fold-const.c	(revision 128320)
> --- fold-const.c	(working copy)
> *************** extract_muldiv_1 (tree t, tree c, enum t
> *** 6273,6279 ****
>   	  && ((code == MULT_EXPR && tcode == EXACT_DIV_EXPR)
>   	      || (tcode == MULT_EXPR
>   		  && code != TRUNC_MOD_EXPR && code != CEIL_MOD_EXPR
> ! 		  && code != FLOOR_MOD_EXPR && code != ROUND_MOD_EXPR)))
>   	{
>   	  if (integer_zerop (const_binop (TRUNC_MOD_EXPR, op1, c, 0)))
>   	    {
> --- 6273,6280 ----
>   	  && ((code == MULT_EXPR && tcode == EXACT_DIV_EXPR)
>   	      || (tcode == MULT_EXPR
>   		  && code != TRUNC_MOD_EXPR && code != CEIL_MOD_EXPR
> ! 		  && code != FLOOR_MOD_EXPR && code != ROUND_MOD_EXPR
> ! 		  && code != MULT_EXPR)))
>   	{
>   	  if (integer_zerop (const_binop (TRUNC_MOD_EXPR, op1, c, 0)))
>   	    {


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