This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix thumb1 size cost of small constants
On Thu, 2010-06-24 at 01:05 +0400, Maxim Kuvyrkov wrote:
> This patch fixes thumb1 size cost of small constants.
>
> Currently, the cost of SET of a constant is set to zero, which is odd
> considering that it still takes one instruction to do the operation.
> The code for Thumb2 and ARM modes returns COSTS_N_INSNS (1) for similar
> case, so the patch makes Thumb1 cost agree with ARM and Thumb2 cost.
>
> OK to check in?
>
> Thank you,
OK.
R.