Commit 18b42b2a by Kyrylo Tkachov Committed by Kyrylo Tkachov

[AArch64] Add handling of bswap operations in rtx costs

	* config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.

From-SVN: r209706
parent ea1e9168
2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.md (arm_rev16si2): New pattern.
(arm_rev16si2_alt): Likewise.
* config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
......
......@@ -4694,6 +4694,14 @@ aarch64_rtx_costs (rtx x, int code, int outer ATTRIBUTE_UNUSED,
return false;
case BSWAP:
*cost = COSTS_N_INSNS (1);
if (speed)
*cost += extra_cost->alu.rev;
return false;
case IOR:
if (aarch_rev16_p (x))
{
......
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