]> git.pld-linux.org Git - packages/gcc4.git/blob - gcc4-pr24669.patch
- added from gcc/
[packages/gcc4.git] / gcc4-pr24669.patch
1 --- gcc/gcc/config/i386/i386.c      (revision 106482)
2 +++ gcc/gcc/config/i386/i386.c      (working copy)
3 @@ -5396,8 +5396,12 @@
4    if (parts.index && GET_CODE (parts.index) == SUBREG)
5      parts.index = SUBREG_REG (parts.index);
6
7 +  /* Penalize displacements a bit.  */
8 +  if (parts.disp && parts.disp != const0_rtx)
9 +    cost++;
10 +
11    /* More complex memory references are better.  */
12 -  if (parts.disp && parts.disp != const0_rtx)
13 +  if (parts.scale)
14      cost--;
15    if (parts.seg != SEG_DEFAULT)
16      cost--;
This page took 0.087543 seconds and 3 git commands to generate.