[ARM] Fix checking RTL error in cortex_a9_sched_adjust_cost
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 30 Oct 2015 14:43:11 +0000 (14:43 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Fri, 30 Oct 2015 14:43:11 +0000 (14:43 +0000)
* config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
check for dependencies.

From-SVN: r229583

gcc/ChangeLog
gcc/config/arm/arm.c

index adbd98e64ed994e491a65d3d8aeaaee58248675d..c7e7fe1ef92f5ea785d1b6d4d0114cb083964572 100644 (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
index 7c72a81ece0beaca3e531e24a9697ee7a6216fc3..43106387c1afded0ab503c8793ecf71ff918ba99 100644 (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