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]

[PATCH PR50572] Tune loop alignment for Atom


Hi!

Here is a patch to address PR50572.
Successfully bootstrapped and passed make check on x86_64-linux.

regards,
Sergos



2011-10-19  Sergey Ostanevich  <sergos.gnu@gmail.com>

	* gcc/config/i386/i386.c (ix86_option_override_internal): use loop
align by 16 bytes for Atom platform

diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 2c53423..7a93144 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -3497,6 +3497,8 @@ ix86_option_override_internal (bool main_args_p)
     {
       align_loops = processor_target_table[ix86_tune].align_loop;
       align_loops_max_skip =
processor_target_table[ix86_tune].align_loop_max_skip;
+      if (ix86_tune == PROCESSOR_ATOM && optimize > 1)
+        align_loops_max_skip = 15;
     }
   if (align_jumps == 0)
     {


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