[ARM] Fix checking RTL error in cortex_a9_sched_adjust_cost

* config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
	check for dependencies.

From-SVN: r229583
This commit is contained in:
Kyrylo Tkachov 2015-10-30 14:43:11 +00:00 committed by Kyrylo Tkachov
parent a52380e99d
commit aecdf6d919
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
check for dependencies.
2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
* tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free

View File

@ -11610,9 +11610,7 @@ cortex_a9_sched_adjust_cost (rtx_insn *insn, rtx link, rtx_insn *dep, int * cost
case. However this gets modeled as an true
dependency and hence all these checks. */
if (REG_P (SET_DEST (PATTERN (insn)))
&& REG_P (SET_DEST (PATTERN (dep)))
&& reg_overlap_mentioned_p (SET_DEST (PATTERN (insn)),
SET_DEST (PATTERN (dep))))
&& reg_set_p (SET_DEST (PATTERN (insn)), dep))
{
/* FMACS is a special case where the dependent
instruction can be issued 3 cycles before