OSDN Git Service

Revert:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jan 2014 19:28:36 +0000 (19:28 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Jan 2014 19:28:36 +0000 (19:28 +0000)
2014-01-08  Uros Bizjak  <ubizjak@gmail.com>

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@206607 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 878eb66..edcbb91 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 63622ab..cc53a62 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)