This is the mail archive of the gcc@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]

[RFC] Enabling loop unrolls at -O3?


Hello,

any specific reason why we still don't unroll loops by default at -O3? It
looks like it gives better results on most benchmark, and many people use it
always together with -O3 to say "really optimize, I mean it".

Giovanni Bajo



Index: opts.c
===================================================================
--- opts.c      (revision 106352)
+++ opts.c      (working copy)
@@ -589,6 +589,7 @@ decode_options (unsigned int argc, const
       flag_inline_functions = 1;
       flag_unswitch_loops = 1;
       flag_gcse_after_reload = 1;
+      flag_unroll_loops = 1;
     }

   if (optimize < 2 || optimize_size)


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