* config/sh/sh.c (shiftcosts): Return MAX_COST when the first
commited7397872c54f5a264a2c24e6310575d4fbfb3cb
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 Mar 2012 23:16:08 +0000 (3 23:16 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 Mar 2012 23:16:08 +0000 (3 23:16 +0000)
treee72e4539ebd41da24424edbf171aea6e821ac052
parent56342743ff951c0aac8b4f95b6005b33cbec4959
* config/sh/sh.c (shiftcosts): Return MAX_COST when the first
operand is CONST_INT.  Take COSTS_N_INSNS into account.
(sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
of shiftcosts.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184865 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/sh/sh.c