Commit c10e3d7f by Andrew Pinski Committed by Andrew Pinski

aarch64.opt (mverbose-cost-dump): New option.

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
parent 99c72130
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> 2016-11-16 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/78378 PR rtl-optimization/78378
...@@ -7424,7 +7424,8 @@ cost_plus: ...@@ -7424,7 +7424,8 @@ cost_plus:
break; break;
} }
if (dump_file && (dump_flags & TDF_DETAILS)) if (dump_file
&& flag_aarch64_verbose_cost)
fprintf (dump_file, fprintf (dump_file,
"\nFailed to cost RTX. Assuming default cost.\n"); "\nFailed to cost RTX. Assuming default cost.\n");
...@@ -7440,7 +7441,8 @@ aarch64_rtx_costs_wrapper (rtx x, machine_mode mode, int outer, ...@@ -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); 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); print_rtl_single (dump_file, x);
fprintf (dump_file, "\n%s cost: %d (%s)\n", fprintf (dump_file, "\n%s cost: %d (%s)\n",
......
...@@ -167,3 +167,7 @@ Common Var(flag_mlow_precision_div) Optimization ...@@ -167,3 +167,7 @@ Common Var(flag_mlow_precision_div) Optimization
Enable the division approximation. Enabling this reduces Enable the division approximation. Enabling this reduces
precision of division results to about 16 bits for precision of division results to about 16 bits for
single precision and to 32 bits for double precision. 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.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment