Il 22/05/2012 18:26, Dimitrios Apostolou ha scritto: > > You are right, and I noticed that if we reverse (actually put straight) > the loop for the PARALLEL defs inside df_defs_record() then the speedup > stands for both x86 and ppc64. > > The following patch was tested on x86, do you think it is meaningful for > the generic case?
It's really a lottery, but if it doesn't make things worse for x86 why not. Paolo > --- gcc/df-scan.c 2012-05-06 04:08:43 +0000 > +++ gcc/df-scan.c 2012-05-22 13:08:33 +0000 > @@ -3010,7 +3010,7 @@ df_defs_record (struct df_collection_rec > break; > > case PARALLEL: > - for (i = XVECLEN (x, 0) - 1; i >= 0; i--) > + for (i = 0; i < XVECLEN (x, 0); i++) > df_defs_record (collection_rec, XVECEXP (x, 0, i), > bb, insn_info, flags); > break;