diff options
author | Michael Hayes <m.hayes@elec.canterbury.ac.nz> | 1999-02-12 02:41:28 +0000 |
---|---|---|
committer | Michael Hayes <m.hayes@gcc.gnu.org> | 1999-02-12 02:41:28 +0000 |
commit | 21034cc50049b323c3ad3c6f1cc424dfc19eae80 (patch) | |
tree | a5e393fee9494b8245b8e778c0eca37c5777b1e0 | |
parent | 3520cdec817a18b86eaaa019b6d98d8261487372 (diff) | |
download | gcc-21034cc50049b323c3ad3c6f1cc424dfc19eae80.zip gcc-21034cc50049b323c3ad3c6f1cc424dfc19eae80.tar.gz gcc-21034cc50049b323c3ad3c6f1cc424dfc19eae80.tar.bz2 |
c4x.c (c4x_address_cost): Revert 9 Feb change.
* 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.)
From-SVN: r25163
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/c4x/c4x.c | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0863f1d..7e03bf5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 12 23:37:26 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz> + + * config/c4x/c4x.c (c4x_address_cost): Revert 9 Feb change. + Fri Feb 12 00:51:26 1999 Jeffrey A Law (law@cygnus.com) * reload.c (find_reloads_address_1): Fix handling of an autoincremented diff --git a/gcc/config/c4x/c4x.c b/gcc/config/c4x/c4x.c index d12d985..c1309f1 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: |