From: Andrew Pinski Date: Thu, 17 Nov 2016 01:19:04 +0000 (-0800) Subject: aarch64.opt (mverbose-cost-dump): New option. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c10e3d7f2aaf10e3ef6c3ce8ba7cbb3123f62df3;p=gcc.git aarch64.opt (mverbose-cost-dump): New option. 2016-11-16 Andrew PInski * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f7121991a1b..8ea71066c7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-11-16 Andrew PInski + + * 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 PR rtl-optimization/78378 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index bd97c5b701c..11d41cfe10c 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -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", diff --git a/gcc/config/aarch64/aarch64.opt b/gcc/config/aarch64/aarch64.opt index 82e9f5bd0be..d74654d56e5 100644 --- a/gcc/config/aarch64/aarch64.opt +++ b/gcc/config/aarch64/aarch64.opt @@ -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.