Commit 21034cc5 by Michael Hayes Committed by Michael Hayes

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
parent 3520cdec
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) Fri Feb 12 00:51:26 1999 Jeffrey A Law (law@cygnus.com)
* reload.c (find_reloads_address_1): Fix handling of an autoincremented * reload.c (find_reloads_address_1): Fix handling of an autoincremented
......
...@@ -1526,14 +1526,8 @@ rtx addr; ...@@ -1526,14 +1526,8 @@ rtx addr;
break; break;
case REG: case REG:
/* Paradoxically, if we want autoincrement addressing for /* This cost for REG+REG must be greater than the cost
complex arithmetic and structure arrays, we must give for REG if we want autoincrement addressing modes. */
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;
return 2; return 2;
case CONST_INT: case CONST_INT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment