This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Rename existing insn_cost to insn_sched_cost
- From: Richard Sandiford <richard dot sandiford at linaro dot org>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Sep 2017 22:36:48 +0100
- Subject: Re: [PATCH] Rename existing insn_cost to insn_sched_cost
- Authentication-results: sourceware.org; auth=none
- References: <01cd3b1eb6c8f0ef336ce2850dcd2edf52b11684.1506003847.git.segher@kernel.crashing.org>
Segher Boessenkool <segher@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.sandiford@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;
}