sh.c (shiftcosts): Return MAX_COST when the first operand is CONST_INT.
authorKaz Kojima <kkojima@gcc.gnu.org>
Sat, 3 Mar 2012 23:16:08 +0000 (23:16 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Sat, 3 Mar 2012 23:16:08 +0000 (23:16 +0000)
commitdea148c40c7586c2cf576cc97dabf96f88d500a0
treee72e4539ebd41da24424edbf171aea6e821ac052
parentd289d284abfc9069c06ffdd914b5b1b8aba3c457
sh.c (shiftcosts): Return MAX_COST when the first operand is CONST_INT.

* 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.

From-SVN: r184865
gcc/ChangeLog
gcc/config/sh/sh.c