r255111 - in /trunk/gcc: ChangeLog config/arm/a...
cbaylis@gcc.gnu.org
cbaylis@gcc.gnu.org
Thu Nov 23 18:37:00 GMT 2017
Author: cbaylis
Date: Thu Nov 23 18:37:18 2017
New Revision: 255111
URL: https://gcc.gnu.org/viewcvs?rev=255111&root=gcc&view=rev
Log:
[ARM] Refactor costs calculation for MEM.
This patch moves the calculation of costs for MEM into a
separate function, and reforms the calculation into two
parts. Firstly any additional cost of the addressing mode
is calculated, and then the cost of the memory access itself
is added.
In this patch, the calculation of the cost of the addressing
mode is omitted, to be added in a subsequent patch.
gcc/ChangeLog:
<date> Charles Baylis <charles.baylis@linaro.org>
* config/arm/arm.c (arm_mem_costs): New function.
(arm_rtx_costs_internal): Use arm_mem_costs.
gcc/testsuite/ChangeLog:
<date> Charles Baylis <charles.baylis@linaro.org>
* gcc.target/arm/addr-modes-float.c: New test.
* gcc.target/arm/addr-modes-int.c: New test.
* gcc.target/arm/addr-modes.h: New header.
Added:
trunk/gcc/testsuite/gcc.target/arm/addr-modes-float.c
trunk/gcc/testsuite/gcc.target/arm/addr-modes-int.c
trunk/gcc/testsuite/gcc.target/arm/addr-modes.h
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arm/arm.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list