From 2998cb96c8128b826c357caed14d75961115c441 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 29 Feb 2016 16:15:27 +0100 Subject: HSA: reduce dump output w/o -details flag * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS is presented in dump flags. * hsa-regalloc.c (linear_scan_regalloc): Likewise. (hsa_regalloc): Likewise. From-SVN: r233814 --- gcc/hsa-regalloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/hsa-regalloc.c') diff --git a/gcc/hsa-regalloc.c b/gcc/hsa-regalloc.c index 9437132..16cde8b 100644 --- a/gcc/hsa-regalloc.c +++ b/gcc/hsa-regalloc.c @@ -605,7 +605,7 @@ linear_scan_regalloc (struct m_reg_class_desc *classes) spill_at_interval (reg, active); /* Some interesting dumping as we go. */ - if (dump_file) + if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, " reg%d: [%5d, %5d)->", reg->m_order, reg->m_lr_begin, reg->m_lr_end); @@ -637,7 +637,7 @@ linear_scan_regalloc (struct m_reg_class_desc *classes) BITMAP_FREE (work); free (bbs); - if (dump_file) + if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, "------- After liveness: -------\n"); dump_hsa_cfun_regalloc (dump_file); @@ -702,7 +702,7 @@ hsa_regalloc (void) { naive_outof_ssa (); - if (dump_file) + if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, "------- After out-of-SSA: -------\n"); dump_hsa_cfun (dump_file); @@ -710,7 +710,7 @@ hsa_regalloc (void) regalloc (); - if (dump_file) + if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, "------- After register allocation: -------\n"); dump_hsa_cfun (dump_file); -- cgit v1.1