aarch64.opt (mverbose-cost-dump): New option.
authorAndrew Pinski <apinski@cavium.com>
Thu, 17 Nov 2016 01:19:04 +0000 (17:19 -0800)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 17 Nov 2016 01:19:04 +0000 (17:19 -0800)
2016-11-16  Andrew PInski  <apinski@cavium.com>

        * 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.

From-SVN: r242531

gcc/ChangeLog
gcc/config/aarch64/aarch64.c
gcc/config/aarch64/aarch64.opt

index f7121991a1bdffc400a2402429bf76a4611e955d..8ea71066c7f0e7fca658e0dbf13dbfd3132efe0c 100644 (file)
@@ -1,3 +1,10 @@
+2016-11-16  Andrew PInski  <apinski@cavium.com>
+
+       * 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.
+
 2016-11-16  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/78378
index bd97c5b701cacc1ccc8481b5249ab657f1258be6..11d41cfe10cc28c2c6baa375160d6d9249a6ff84 100644 (file)
@@ -7424,7 +7424,8 @@ cost_plus:
       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");
 
@@ -7440,7 +7441,8 @@ aarch64_rtx_costs_wrapper (rtx x, machine_mode mode, int outer,
 {
   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 82e9f5bd0be66e6d5812f7cd6bbd77bc201e97e7..d74654d56e5f4ff2776042032408525b90a8e649 100644 (file)
@@ -167,3 +167,7 @@ Common Var(flag_mlow_precision_div) Optimization
 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 Undocumented Var(flag_aarch64_verbose_cost)
+Enables verbose cost model dummping in the debug dump files.