This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[RFC] Enabling loop unrolls at -O3?
- From: "Giovanni Bajo" <rasky at develer dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Sat, 5 Nov 2005 18:54:16 +0100
- Subject: [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)