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
This commit is contained in:
Uros Bizjak 2014-01-14 20:28:36 +01:00 committed by Uros Bizjak
parent 8b503a0fbc
commit 3ba4ee8278
2 changed files with 9 additions and 9 deletions

View 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

View 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)