]>
Commit | Line | Data |
---|---|---|
4aa560c1 PS |
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--; |