aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2008-09-01 12:28:06 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2008-09-01 12:28:06 +0000
commit756f763b0bae99a148db1b2b9dfb11bc51b384f0 (patch)
tree799a4e91817b9b5e59ce869a6d7e82d432813e08 /gcc/config
parent840018d9d1c29fb551eaee876c930d39cd69c957 (diff)
downloadgcc-756f763b0bae99a148db1b2b9dfb11bc51b384f0.zip
gcc-756f763b0bae99a148db1b2b9dfb11bc51b384f0.tar.gz
gcc-756f763b0bae99a148db1b2b9dfb11bc51b384f0.tar.bz2
arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
2008-09-01 Paul Brook <paul@codesourcery.com> gcc/ * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract. From-SVN: r139860
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arm/arm.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 6a4b3ef..d22b4fe 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -18235,8 +18235,15 @@ arm_no_early_mul_dep (rtx producer, rtx consumer)
op = XVECEXP (op, 0, 0);
op = XEXP (op, 1);
- return (GET_CODE (op) == PLUS
- && !reg_overlap_mentioned_p (value, XEXP (op, 0)));
+ if (GET_CODE (op) == PLUS || GET_CODE (op) == MINUS)
+ {
+ if (GET_CODE (XEXP (op, 0)) == MULT)
+ return !reg_overlap_mentioned_p (value, XEXP (op, 0));
+ else
+ return !reg_overlap_mentioned_p (value, XEXP (op, 1));
+ }
+
+ return 0;
}
/* We can't rely on the caller doing the proper promotion when