mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-25 20:14:46 +08:00
[ARM] Handle simple SImode PLUS and MINUS cases in rtx costs
* config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS): Add cost of alu.arith in simple SImode case. From-SVN: r217692
This commit is contained in:
parent
ddcfa953fc
commit
e8c4308977
@ -1,3 +1,8 @@
|
||||
2014-11-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
|
||||
|
||||
* config/arm/arm.c (arm_new_rtx_costs, case PLUS, MINUS):
|
||||
Add cost of alu.arith in simple SImode case.
|
||||
|
||||
2014-11-18 Jiong Wang <jiong.wang@arm.com>
|
||||
|
||||
* lra-eliminations.c (update_reg_eliminate): Relax gcc_assert for fixed
|
||||
|
@ -9822,6 +9822,8 @@ arm_new_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer_code,
|
||||
*cost += rtx_cost (XEXP (x, 1), code, 1, speed_p);
|
||||
return true;
|
||||
}
|
||||
else if (speed_p)
|
||||
*cost += extra_cost->alu.arith;
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -10057,6 +10059,9 @@ arm_new_rtx_costs (rtx x, enum rtx_code code, enum rtx_code outer_code,
|
||||
*cost += rtx_cost (XEXP (x, 0), PLUS, 0, speed_p);
|
||||
return true;
|
||||
}
|
||||
else if (speed_p)
|
||||
*cost += extra_cost->alu.arith;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user