]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert:
authorUros Bizjak <ubizjak@gmail.com>
Tue, 14 Jan 2014 19:28:36 +0000 (20:28 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 14 Jan 2014 19:28:36 +0000 (20:28 +0100)
2014-01-08  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386.c (ix86_data_alignment): Calculate max_align
from prefetch_block tune setting.

From-SVN: r206607

gcc/ChangeLog
gcc/config/i386/i386.c

index 878eb66f0eecbbe27871ee5dd5d936da296a05f3..edcbb91e4002a1f0a9d1f5ceac571879f3dc1e67 100644 (file)
@@ -1,3 +1,11 @@
+2014-01-14  Uros Bizjak  <ubizjak@gmail.com>
+
+       Revert:
+       2014-01-08  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.c (ix86_data_alignment): Calculate max_align
+       from prefetch_block tune setting.
+
 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
 
        PR rtl-optimization/54300
index 63622abf78b3772495a50c35912b4a9ff01a76a6..cc53a6262d15485706f42e129104982799729bd5 100644 (file)
@@ -24266,16 +24266,8 @@ ix86_constant_alignment (tree exp, int align)
 int
 ix86_data_alignment (tree type, int align)
 {
-  /* A data structure, equal or greater than the size of a cache line
-     (64 bytes in the Pentium 4 and other recent Intel processors, including
-     processors based on Intel Core microarchitecture) should be aligned
-     so that its base address is a multiple of a cache line size.  */
-
   int max_align
-    = MIN ((unsigned) ix86_cost->prefetch_block * 8, MAX_OFILE_ALIGNMENT);
-
-  if (max_align < BITS_PER_WORD)
-    max_align = BITS_PER_WORD;
+    = optimize_size ? BITS_PER_WORD : MIN (256, MAX_OFILE_ALIGNMENT);
 
   if (AGGREGATE_TYPE_P (type)
       && TYPE_SIZE (type)