[PATCH][ARM] Get mode for rtx costs calculations for SET RTX from destination reg

Richard Earnshaw rearnsha@arm.com
Fri Jan 10 11:33:00 GMT 2014


On 09/01/14 17:42, Kyrill Tkachov wrote:
> Hi all,
> 
> SET RTXs don't have a mode, so the code to calculate a reg-to-reg set in the arm 
> rtx costs function needs to get the mode from one of the registers involved. We 
> already did that when the source is a CONST_INT.
> 
> This patch fixes that oversight and also prevents us from falling through or 
> recursing, since the cost calculated for (set (reg) (reg)) should be final at 
> that point.
> 
> Tested arm-none-eabi on qemu.
> 
> Ok for trunk?
> 
> Thanks,
> Kyrill
> 
> 2014-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
> 
>      * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
>      when handling a SET rtx.
> 
> 

OK.

R.




More information about the Gcc-patches mailing list