diff options
author | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-01 12:28:06 +0000 |
---|---|---|
committer | pbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-01 12:28:06 +0000 |
commit | 0794739464f23c28948d86e860df0d255d1700bf (patch) | |
tree | 799a4e91817b9b5e59ce869a6d7e82d432813e08 /gcc/config | |
parent | 95d48f1ed73ee8068c6c687009c165e190fc5f43 (diff) | |
download | gcc-0794739464f23c28948d86e860df0d255d1700bf.tar.gz |
2008-09-01 Paul Brook <paul@codesourcery.com>
gcc/
* config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139860 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/arm/arm.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 6a4b3ef11cd..d22b4fe237b 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 |