This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 4/5] Add targetm.insn_cost hook
- From: Jeff Law <law at redhat dot com>
- To: Segher Boessenkool <segher at kernel dot crashing dot org>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Aug 2017 10:39:07 -0600
- Subject: Re: [PATCH 4/5] Add targetm.insn_cost hook
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=law at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 565297754C
- References: <cover.1501541006.git.segher@kernel.crashing.org> <8b3c1894f692b28d01ffde0d1ec1b9ce7a45f744.1501541007.git.segher@kernel.crashing.org>
On 07/31/2017 05:25 PM, Segher Boessenkool wrote:
> This introduces a hook to implement insn_cost. If a target does not
> implement the hook, the old function (i.e. pattern_cost) is used.
>
> ---
> gcc/doc/tm.texi | 12 ++++++++++++
> gcc/doc/tm.texi.in | 2 ++
> gcc/rtlanal.c | 3 +++
> gcc/target.def | 14 ++++++++++++++
> 4 files changed, 31 insertions(+)
Looks reasonable as well.
jeff