summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-05 09:31:43 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-05 09:31:43 +0000
commit3e39e66066daa666e1cdff5dbd792cdff8b9c2ed (patch)
tree7bf59e249e770d6da67971c5712fa8b2579525d3 /gcc/config/i386
parentf221c0bd25464a2238dcb2a1967898e349a0f91d (diff)
downloadgcc-3e39e66066daa666e1cdff5dbd792cdff8b9c2ed.tar.gz
* config/i386/i386.c (ix86_address_cost): Do not consider more complex
addressing modes cheaper. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126360 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/i386.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 341bf90bf9e..f57d8613833 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -6564,12 +6564,6 @@ ix86_address_cost (rtx x)
if (parts.index && GET_CODE (parts.index) == SUBREG)
parts.index = SUBREG_REG (parts.index);
- /* More complex memory references are better. */
- if (parts.disp && parts.disp != const0_rtx)
- cost--;
- if (parts.seg != SEG_DEFAULT)
- cost--;
-
/* Attempt to minimize number of registers in the address. */
if ((parts.base
&& (!REG_P (parts.base) || REGNO (parts.base) >= FIRST_PSEUDO_REGISTER))