From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64691 invoked by alias); 27 May 2015 08:38:06 -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 64675 invoked by uid 89); 27 May 2015 08:38:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 27 May 2015 08:38:03 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by uk-mta-4.uk.mimecast.lan; Wed, 27 May 2015 09:38:00 +0100 Received: from [10.2.207.50] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 27 May 2015 09:38:00 +0100 Message-ID: <55658268.7020403@arm.com> Date: Wed, 27 May 2015 08:47:00 -0000 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches CC: Ramana Radhakrishnan , Richard Earnshaw Subject: Re: [PATCH][ARM] Add debug dumping of cost table fields References: <55438E3F.8050205@arm.com> In-Reply-To: <55438E3F.8050205@arm.com> X-MC-Unique: oOZ-WyXtTHGiC49B18HnuA-1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg02396.txt.bz2 Ping. https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00054.html Thanks, Kyrill On 01/05/15 15:31, Kyrill Tkachov wrote: > Hi all, > > This patch adds a macro to wrap cost field accesses into a helpful debug = dump, > saying which field is being accessed at what line and with what values. > This helped me track down cases where the costs were doing the wrong thing > by allowing me to see which path in arm_new_rtx_costs was taken. > For example, the combine log might now contain: > > Trying 2 -> 6: > Successfully matched this instruction: > (set (reg:SI 115 [ D.5348 ]) > (neg:SI (reg:SI 0 r0 [ a ]))) > using extra_cost->alu.arith with cost 0 from line 10506 > > which can be useful in debugging the rtx costs. > > Bootstrapped and tested on arm. > > Ok for trunk? > > Thanks, > Kyrill > > > 2015-05-01 Kyrylo Tkachov > > * config/arm/arm.c (DBG_COST): New macro. > (arm_new_rtx_costs): Use above.