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.tkac...@arm.com> > > * config/arm/arm.c (arm_new_rtx_costs): Use destination mode > when handling a SET rtx. > >
OK. R.