public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH/AARCH64] Have the verbose cost model output output be controllable
@ 2016-09-24  8:52 Andrew Pinski
  2016-10-06 22:12 ` Andrew Pinski
  2016-10-07  8:01 ` Kyrill Tkachov
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Pinski @ 2016-09-24  8:52 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

Hi,
  As reported in PR 61367, the aarch64 back-end is too verbose when it
is dealing with the cost model.  I tend to agree, no other back-end is
this verbose.  So I decided to add an option to enable this verbose
output if requested.

I did NOT document it in invoke.texi because I don't feel like this is
an option which an user should use.  But I can add it if requested.

OK?  Bootstrapped and tested on aarch64-linux-gnu with no regressions.

Thanks,
Andrew Pinski

ChangeLog:
* config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
* config/aarch64/aarch64.c (aarch64_rtx_costs): Use
flag_aarch64_verbose_cost instead of checking for details dump.
(aarch64_rtx_costs_wrapper): Likewise.

[-- Attachment #2: disableverbosecostdump.diff.txt --]
[-- Type: text/plain, Size: 1230 bytes --]

Index: config/aarch64/aarch64.c
===================================================================
--- config/aarch64/aarch64.c	(revision 240461)
+++ config/aarch64/aarch64.c	(working copy)
@@ -7351,7 +7351,8 @@
       break;
     }
 
-  if (dump_file && (dump_flags & TDF_DETAILS))
+  if (dump_file
+      && flag_aarch64_verbose_cost)
     fprintf (dump_file,
       "\nFailed to cost RTX.  Assuming default cost.\n");
 
@@ -7367,7 +7368,8 @@
 {
   bool result = aarch64_rtx_costs (x, mode, outer, param, cost, speed);
 
-  if (dump_file && (dump_flags & TDF_DETAILS))
+  if (dump_file
+      && flag_aarch64_verbose_cost)
     {
       print_rtl_single (dump_file, x);
       fprintf (dump_file, "\n%s cost: %d (%s)\n",
Index: config/aarch64/aarch64.opt
===================================================================
--- config/aarch64/aarch64.opt	(revision 240461)
+++ config/aarch64/aarch64.opt	(working copy)
@@ -167,3 +167,7 @@
 Enable the division approximation.  Enabling this reduces
 precision of division results to about 16 bits for
 single precision and to 32 bits for double precision.
+
+mverbose-cost-dump
+Common Var(flag_aarch64_verbose_cost)
+Enables verbose cost model dummping in the debug dump files.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH/AARCH64] Have the verbose cost model output output be controllable
  2016-09-24  8:52 [PATCH/AARCH64] Have the verbose cost model output output be controllable Andrew Pinski
@ 2016-10-06 22:12 ` Andrew Pinski
  2016-10-07  8:01 ` Kyrill Tkachov
  1 sibling, 0 replies; 5+ messages in thread
From: Andrew Pinski @ 2016-10-06 22:12 UTC (permalink / raw)
  To: GCC Patches

On Fri, Sep 23, 2016 at 10:46 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> Hi,
>   As reported in PR 61367, the aarch64 back-end is too verbose when it
> is dealing with the cost model.  I tend to agree, no other back-end is
> this verbose.  So I decided to add an option to enable this verbose
> output if requested.
>
> I did NOT document it in invoke.texi because I don't feel like this is
> an option which an user should use.  But I can add it if requested.
>
> OK?  Bootstrapped and tested on aarch64-linux-gnu with no regressions.

Ping?

>
> Thanks,
> Andrew Pinski
>
> ChangeLog:
> * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
> * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
> flag_aarch64_verbose_cost instead of checking for details dump.
> (aarch64_rtx_costs_wrapper): Likewise.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH/AARCH64] Have the verbose cost model output output be controllable
  2016-09-24  8:52 [PATCH/AARCH64] Have the verbose cost model output output be controllable Andrew Pinski
  2016-10-06 22:12 ` Andrew Pinski
@ 2016-10-07  8:01 ` Kyrill Tkachov
  2016-11-15 16:48   ` Andrew Pinski
  1 sibling, 1 reply; 5+ messages in thread
From: Kyrill Tkachov @ 2016-10-07  8:01 UTC (permalink / raw)
  To: Andrew Pinski, GCC Patches
  Cc: James Greenhalgh, Marcus Shawcroft, Richard Earnshaw

Hi Andrew,

On 24/09/16 06:46, Andrew Pinski wrote:
> Hi,
>    As reported in PR 61367, the aarch64 back-end is too verbose when it
> is dealing with the cost model.  I tend to agree, no other back-end is
> this verbose.  So I decided to add an option to enable this verbose
> output if requested.
>
> I did NOT document it in invoke.texi because I don't feel like this is
> an option which an user should use.  But I can add it if requested.
>
> OK?  Bootstrapped and tested on aarch64-linux-gnu with no regressions.
>
> Thanks,
> Andrew Pinski
>
> ChangeLog:
> * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
> * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
> flag_aarch64_verbose_cost instead of checking for details dump.
> (aarch64_rtx_costs_wrapper): Likewise.

I'm okay with the idea, but I can't approve (cc'ing people who can).
One nit:

+mverbose-cost-dump
+Common Var(flag_aarch64_verbose_cost)
+Enables verbose cost model dummping in the debug dump files.

You should add "Undocumented" to that.
I don't think the option is major enough to warrant an entry in invoke.texi.
It's only for aarch64 backend developers who know exactly what they're looking for.

Cheers,
Kyrill


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH/AARCH64] Have the verbose cost model output output be controllable
  2016-10-07  8:01 ` Kyrill Tkachov
@ 2016-11-15 16:48   ` Andrew Pinski
  2016-11-15 17:01     ` James Greenhalgh
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Pinski @ 2016-11-15 16:48 UTC (permalink / raw)
  To: Kyrill Tkachov
  Cc: GCC Patches, James Greenhalgh, Marcus Shawcroft, Richard Earnshaw

On Fri, Oct 7, 2016 at 1:01 AM, Kyrill Tkachov
<kyrylo.tkachov@foss.arm.com> wrote:
> Hi Andrew,
>
>
> On 24/09/16 06:46, Andrew Pinski wrote:
>>
>> Hi,
>>    As reported in PR 61367, the aarch64 back-end is too verbose when it
>> is dealing with the cost model.  I tend to agree, no other back-end is
>> this verbose.  So I decided to add an option to enable this verbose
>> output if requested.
>>
>> I did NOT document it in invoke.texi because I don't feel like this is
>> an option which an user should use.  But I can add it if requested.
>>
>> OK?  Bootstrapped and tested on aarch64-linux-gnu with no regressions.
>>
>> Thanks,
>> Andrew Pinski
>>
>> ChangeLog:
>> * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
>> * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
>> flag_aarch64_verbose_cost instead of checking for details dump.
>> (aarch64_rtx_costs_wrapper): Likewise.
>
>
> I'm okay with the idea, but I can't approve (cc'ing people who can).

Ping?


> One nit:
>
> +mverbose-cost-dump
> +Common Var(flag_aarch64_verbose_cost)
> +Enables verbose cost model dummping in the debug dump files.
>
> You should add "Undocumented" to that.
> I don't think the option is major enough to warrant an entry in invoke.texi.
> It's only for aarch64 backend developers who know exactly what they're
> looking for.
>
> Cheers,
> Kyrill
>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH/AARCH64] Have the verbose cost model output output be controllable
  2016-11-15 16:48   ` Andrew Pinski
@ 2016-11-15 17:01     ` James Greenhalgh
  0 siblings, 0 replies; 5+ messages in thread
From: James Greenhalgh @ 2016-11-15 17:01 UTC (permalink / raw)
  To: Andrew Pinski
  Cc: Kyrill Tkachov, GCC Patches, Marcus Shawcroft, Richard Earnshaw, nd

On Tue, Nov 15, 2016 at 08:48:04AM -0800, Andrew Pinski wrote:
> On Fri, Oct 7, 2016 at 1:01 AM, Kyrill Tkachov
> <kyrylo.tkachov@foss.arm.com> wrote:
> > Hi Andrew,
> >
> >
> > On 24/09/16 06:46, Andrew Pinski wrote:
> >>
> >> Hi,
> >>    As reported in PR 61367, the aarch64 back-end is too verbose when it
> >> is dealing with the cost model.  I tend to agree, no other back-end is
> >> this verbose.  So I decided to add an option to enable this verbose
> >> output if requested.
> >>
> >> I did NOT document it in invoke.texi because I don't feel like this is
> >> an option which an user should use.  But I can add it if requested.
> >>
> >> OK?  Bootstrapped and tested on aarch64-linux-gnu with no regressions.
> >>
> >> Thanks,
> >> Andrew Pinski
> >>
> >> ChangeLog:
> >> * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
> >> * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
> >> flag_aarch64_verbose_cost instead of checking for details dump.
> >> (aarch64_rtx_costs_wrapper): Likewise.
> >
> >
> > I'm okay with the idea, but I can't approve (cc'ing people who can).
> 
> Ping?

I think after having AArch64 back-end developers frustrated by the mountains
of dump output for two years it is a good time to relent...

This is OK with Kyrill's change applied.

Thanks,
James

> 
> 
> > One nit:
> >
> > +mverbose-cost-dump
> > +Common Var(flag_aarch64_verbose_cost)
> > +Enables verbose cost model dummping in the debug dump files.
> >
> > You should add "Undocumented" to that.
> > I don't think the option is major enough to warrant an entry in invoke.texi.
> > It's only for aarch64 backend developers who know exactly what they're
> > looking for.
> >
> > Cheers,
> > Kyrill
> >
> >

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-15 17:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-24  8:52 [PATCH/AARCH64] Have the verbose cost model output output be controllable Andrew Pinski
2016-10-06 22:12 ` Andrew Pinski
2016-10-07  8:01 ` Kyrill Tkachov
2016-11-15 16:48   ` Andrew Pinski
2016-11-15 17:01     ` James Greenhalgh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).