summaryrefslogtreecommitdiff
path: root/gcc/config/c4x
diff options
context:
space:
mode:
authorm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-12 02:41:28 +0000
committerm.hayes <m.hayes@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-12 02:41:28 +0000
commit6fabf6dff400207565a055fe3a714ebdddb7ad74 (patch)
treea5e393fee9494b8245b8e778c0eca37c5777b1e0 /gcc/config/c4x
parente128a39e5d652e681f9c7a8aead3b970a000b13e (diff)
downloadgcc-6fabf6dff400207565a055fe3a714ebdddb7ad74.tar.gz
* config/c4x/c4x.c (c4x_address_cost): Revert 9 Feb change.
(While this patch fixed GIV combination for complex arithmetic it screwed up generation of autoincrement addresses for the common cases.) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25163 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/c4x')
-rw-r--r--gcc/config/c4x/c4x.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c
index d12d985d61e..c1309f15ea9 100644
--- a/gcc/config/c4x/c4x.c
+++ b/gcc/config/c4x/c4x.c
@@ -1526,14 +1526,8 @@ rtx addr;
break;
case REG:
- /* Paradoxically, if we want autoincrement addressing for
- complex arithmetic and structure arrays, we must give
- REG+REG addressing the same cost as REG addressing to
- prevent CSE from avoiding REG+REG addresses. This is
- because GIV combination in loop.c is suboptimal and
- needs fixing. */
- if (flag_strength_reduce)
- return 1;
+ /* This cost for REG+REG must be greater than the cost
+ for REG if we want autoincrement addressing modes. */
return 2;
case CONST_INT: