From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93338 invoked by alias); 8 Jul 2015 08:22:26 -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 93322 invoked by uid 89); 8 Jul 2015 08:22:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 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, 08 Jul 2015 08:22:24 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-30-uS2XsEoAS7OGtqYFNXbBXg-1 Received: from [10.2.207.50] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 8 Jul 2015 09:22:18 +0100 Message-ID: <559CDDBA.6010502@arm.com> Date: Wed, 08 Jul 2015 08:22: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: Andrew Pinski CC: GCC Patches , Ramana Radhakrishnan , Richard Earnshaw Subject: Re: [PATCH][ARM] Add debug dumping of cost table fields References: <55438E3F.8050205@arm.com> <55658268.7020403@arm.com> <557FE01B.9060206@arm.com> In-Reply-To: <557FE01B.9060206@arm.com> X-MC-Unique: uS2XsEoAS7OGtqYFNXbBXg-1 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00564.txt.bz2 Ping. https://gcc.gnu.org/ml/gcc-patches/2015-06/msg01064.html Thanks, Kyrill On 16/06/15 09:36, Kyrill Tkachov wrote: > On 27/05/15 09:39, Andrew Pinski wrote: >> On Wed, May 27, 2015 at 4:38 PM, Kyrill Tkachov = wrote: >>> Ping. >>> https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00054.html >> This and the one in AARCH64 is too noisy. Can we have an option to >> turn this on and default to turning them off. > How about this? The new undocumented option can be used to turn on verbos= e costs dumping. > It is off by default. > > Tested arm-none-eabi. > > Ok for trunk? > > Thanks, > Kyrill > > 2015-06-16 Kyrylo Tkachov > > * config/arm/arm.c (DBG_COST): New macro. > (arm_new_rtx_costs): Use above. > * config/arm/arm.opt (mdebug-rtx-costs): New option. > >> Thanks, >> Andrew >> >>> 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 deb= ug >>>> 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 t= hing >>>> 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.