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] Fix PR39976, sixtrack degradation


Hi Michael,

Thanks for the patch. It does fix the problem on 64-bits bringing the
performance numbers back.

On 32-bit we're still ~9% down, though we only have a single BB in the
loop and the loop structure is the same as the good case.

I'll do some more digging and will update the ticket.

Regards,
Luis

On Wed, 2009-05-13 at 21:28 +0200, Michael Matz wrote:
> Hi,
> 
> On Wed, 13 May 2009, Richard Guenther wrote:
> 
> > > +      for (gsi = gsi_start_bb (bb); gsi_stmt (gsi) != use_stmt; gsi_next (&gsi))
> > > +       if (gsi_stmt (gsi) == defa)
> > > +         return true;
> > 
> > Use gimple_uid here to check ordering.
> 
> Ah, yes, much better, thanks.
> 
> > They can be globally initialized by renumber_gimple_stmt_uids().
> 
> Instead of this I'll lazily initialize those only in blocks where it's 
> necessary, there are enough walks over all insns already.  I'm 
> regstrapping this currently and commit then.
> 
> 
> Ciao,
> Michael.


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