Segher Boessenkool <seg...@kernel.crashing.org> writes:
> haifa-sched exports an insn_cost function, but it is only used in a
> few places and specialised to scheduling.  This patch renames it to
> insn_sched_cost.
>
> Okayed by Jeff at https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00202.html,
> committing it now.

I committed this follow-up as obvious.  No other ports seem to be affected.

Thanks,
Richard


2017-09-21  Richard Sandiford  <richard.sandif...@linaro.org>

gcc/
        * config/spu/spu.c (spu_sched_adjust_cost): Update after renaming
        of insn_cost.

Index: gcc/config/spu/spu.c
===================================================================
--- gcc/config/spu/spu.c        2017-09-21 11:53:16.516954001 +0100
+++ gcc/config/spu/spu.c        2017-09-21 22:35:03.426465252 +0100
@@ -3055,7 +3055,7 @@ spu_sched_adjust_cost (rtx_insn *insn, i
      jump_insn.  We adjust here so higher cost insns will get scheduled
      earlier. */
   if (JUMP_P (insn) && dep_type == REG_DEP_ANTI)
-    return insn_cost (dep_insn) - 3;
+    return insn_sched_cost (dep_insn) - 3;
 
   return cost;
 }

Reply via email to