Commit 7fc5ef02 by James Greenhalgh Committed by James Greenhalgh

[AArch64 costs 6/18] Set default costs and handle vector modes.

gcc/

	* config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.

From-SVN: r210498
parent 4745e701
2014-05-16 James Greenhalgh <james.greenhalgh@arm.com> 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
* config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
......
...@@ -4843,6 +4843,21 @@ aarch64_rtx_costs (rtx x, int code, int outer ATTRIBUTE_UNUSED, ...@@ -4843,6 +4843,21 @@ aarch64_rtx_costs (rtx x, int code, int outer ATTRIBUTE_UNUSED,
= aarch64_tune_params->insn_extra_cost; = aarch64_tune_params->insn_extra_cost;
enum machine_mode mode = GET_MODE (x); enum machine_mode mode = GET_MODE (x);
/* By default, assume that everything has equivalent cost to the
cheapest instruction. Any additional costs are applied as a delta
above this default. */
*cost = COSTS_N_INSNS (1);
/* TODO: The cost infrastructure currently does not handle
vector operations. Assume that all vector operations
are equally expensive. */
if (VECTOR_MODE_P (mode))
{
if (speed)
*cost += extra_cost->vect.alu;
return true;
}
switch (code) switch (code)
{ {
case SET: case SET:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment