From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54212 invoked by alias); 1 Aug 2017 00:15:19 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 53865 invoked by uid 89); 1 Aug 2017 00:15:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=gross X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 Aug 2017 00:15:01 +0000 Received: by gcc1-power7.osuosl.org (Postfix, from userid 10019) id A8ACA1C014C; Mon, 31 Jul 2017 23:25:11 +0000 (UTC) From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: Segher Boessenkool Subject: [PATCH 0/5] RFC, WIP: RTL cost improvements Date: Tue, 01 Aug 2017 00:15:00 -0000 Message-Id: X-IsSubscribed: yes X-SW-Source: 2017-08/txt/msg00007.txt.bz2 This series creates pattern_cost and insn_cost functions that together replace the existing insn_rtx_cost function. pattern_cost is like the old insn_rtx_cost function; insn_cost takes an actual rtx_insn * as input, not just a pattern. Also a targetm.insn_cost is added, which targets can use to implement a more exact cost more easily. The combine patch is pretty gross (but functional), it needs some refactoring (to not call recog so often). The rs6000 patch is very much a work in progress. How does this look? Is this the right direction? Segher Segher Boessenkool (5): Rename existing insn_cost to insn_sched_cost Replace insn_rtx_cost with insn_cost and pattern_cost combine: Use insn_cost instead of pattern_cost everywhere Add targetm.insn_cost hook rs6000: Implement insn_cost hook gcc/cfgrtl.c | 7 +++---- gcc/combine.c | 40 +++++++++++++++++++++++++++++----------- gcc/config/rs6000/rs6000.c | 14 ++++++++++++++ gcc/doc/tm.texi | 12 ++++++++++++ gcc/doc/tm.texi.in | 2 ++ gcc/dse.c | 2 +- gcc/haifa-sched.c | 14 +++++++------- gcc/ifcvt.c | 12 ++++++------ gcc/rtl.h | 3 ++- gcc/rtlanal.c | 16 ++++++++++++++-- gcc/sched-int.h | 2 +- gcc/sched-rgn.c | 4 ++-- gcc/sel-sched-ir.c | 2 +- gcc/target.def | 14 ++++++++++++++ 14 files changed, 108 insertions(+), 36 deletions(-) -- 1.9.3