m68hc11.c (m6812_cost): Make cost of add higher than a shift to avoid adding a regist...
authorStephane Carrez <Stephane.Carrez@worldnet.fr>
Fri, 15 Mar 2002 21:27:01 +0000 (22:27 +0100)
committerStephane Carrez <ciceron@gcc.gnu.org>
Fri, 15 Mar 2002 21:27:01 +0000 (22:27 +0100)
commita0ccf503a84269f8e6813d8b2daf57dc214d8ba3
tree25cfd63575fdc96c1482babbf08834ff2b2eef2b
parent45061554e76505bfb66197510a940ecfbd4cd29a
m68hc11.c (m6812_cost): Make cost of add higher than a shift to avoid adding a register with itself.

* config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
than a shift to avoid adding a register with itself.
(m68hc11_memory_move_cost): Take into account NO_REGS.
(m68hc11_register_move_cost): Update and use memory move cost
for soft registers.
(m68hc11_address_cost): Make cost of valid offset not 0 so that
it gives more opportunities to cse to optimize.
* config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
* config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.

From-SVN: r50833
gcc/ChangeLog
gcc/config/m68hc11/m68hc11-protos.h
gcc/config/m68hc11/m68hc11.c
gcc/config/m68hc11/m68hc11.h