[patch] Enable fmove-loop-invariants by default

Zdenek Dvorak rakdver@atrey.karlin.mff.cuni.cz
Sat Feb 11 19:42:00 GMT 2006


Hello,

> On Sat, 11 Feb 2006, Zdenek Dvorak wrote:
> > i686 at -O2, peak is with loop.c disabled.
> >    Est. SPECint_base2000              511
> >    Est. SPECint2000                                                 510
> >    Est. SPECfp_base2000               425
> >    Est. SPECfp2000                                                  428
> 
> Thanks.  Could you post a patch to disable loop.c?  There are some
> issues with the pending killloop merge patches, but given the results
> above these shouldn't block the removal of loop.c, provided that the
> numbers are reproducible/equivalent on other targets.  Once a patch
> is posted, folks will be able to try it out for themselves.

it suffices to pass -fno-loop-optimize, or use the patch below.

Zdenek

Index: loop.c
===================================================================
*** loop.c	(revision 110850)
--- loop.c	(working copy)
*************** debug_loops (const struct loops *loops)
*** 11767,11773 ****
  static bool
  gate_handle_loop_optimize (void)
  {
!   return (optimize > 0 && flag_loop_optimize);
  }
  
  /* Move constant computations out of loops.  */
--- 11767,11773 ----
  static bool
  gate_handle_loop_optimize (void)
  {
!   return 0;
  }
  
  /* Move constant computations out of loops.  */



More information about the Gcc-patches mailing list