aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2015-08-23 22:05:26 +0200
committerLinaro Code Review <review@review.linaro.org>2015-08-27 09:22:11 +0000
commitf2c1f25a463610c461661c5c3c2a84fe8f4b5d34 (patch)
tree6a2d31c36cdb1bd8b51dd615382d1d8b125604a6
parent4f76638ac9003632795a6f0ea2b67ab8ae018dc2 (diff)
gcc/
Backport from trunk r222673. 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case): Add cost of op0 in the compare-with-fpzero case. Change-Id: Ib50bca2174e403ec684d8ccb2c0c41fe7b3b0d75
-rw-r--r--gcc/config/aarch64/aarch64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index c39caa5b452..2b490f64b1c 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -5829,6 +5829,7 @@ aarch64_rtx_costs (rtx x, int code, int outer ATTRIBUTE_UNUSED,
if (CONST_DOUBLE_P (op1) && aarch64_float_const_zero_rtx_p (op1))
{
+ *cost += rtx_cost (op0, COMPARE, 0, speed);
/* FCMP supports constant 0.0 for no extra cost. */
return true;
}