[PATCH GCC/ARM]Fix rtx cost for Thumb1

Richard Earnshaw rearnsha@arm.com
Tue Mar 26 10:57:00 GMT 2013


On 26/03/13 08:34, Bin Cheng wrote:
> Hi,
> As reported in PR56102, arm back end returns wrong rtx cost for pattern
> SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT with multi-word mode. This
> causes GCC skipping the split process in lower-subreg.c, and generating
> bigger constant pool.
>
> This patch fixes the issue. Tested on arm-none-eabi/thumb1/O2/Os, ok for
> trunk?
>
> Thanks.
>
> 2013-03-26  Bin Cheng  <bin.cheng@arm.com>
>
> 	PR target/56102
> 	* config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
> 	rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
> 	mult-word mode.
>

OK.

R.




More information about the Gcc-patches mailing list