Commit 756f763b by Paul Brook Committed by Paul Brook

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
parent 840018d9
2008-09-01 Paul Brook <paul@codesourcery.com>
* config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
2008-00-01 Jan Hubicka <jh@suse.cz> 2008-00-01 Jan Hubicka <jh@suse.cz>
* config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO. * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
......
...@@ -18235,8 +18235,15 @@ arm_no_early_mul_dep (rtx producer, rtx consumer) ...@@ -18235,8 +18235,15 @@ arm_no_early_mul_dep (rtx producer, rtx consumer)
op = XVECEXP (op, 0, 0); op = XVECEXP (op, 0, 0);
op = XEXP (op, 1); op = XEXP (op, 1);
return (GET_CODE (op) == PLUS if (GET_CODE (op) == PLUS || GET_CODE (op) == MINUS)
&& !reg_overlap_mentioned_p (value, XEXP (op, 0))); {
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 /* We can't rely on the caller doing the proper promotion when
......
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