Hello. Following patch limits the number of dump information which is printed to *.hsagen dump file. Patch has been pre-approved by Martin Jambor and survives regbootstrap on x86_64-linux-gnu.
Installed as r233814. Thanks, Martin
>From 30e91f90196fcf4c2180bd907ad0f775611f7135 Mon Sep 17 00:00:00 2001 From: marxin <mli...@suse.cz> Date: Fri, 26 Feb 2016 11:16:45 +0100 Subject: [PATCH] HSA: reduce dump output w/o -details flag gcc/ChangeLog: 2016-02-26 Martin Liska <mli...@suse.cz> * 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. --- gcc/hsa-gen.c | 2 +- gcc/hsa-regalloc.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/hsa-gen.c b/gcc/hsa-gen.c index 28e8b6f..370a699 100644 --- a/gcc/hsa-gen.c +++ b/gcc/hsa-gen.c @@ -5488,7 +5488,7 @@ gen_body_from_gimple () gen_hsa_phi_from_gimple_phi (gsi_stmt (gsi), hbb); } - if (dump_file) + if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, "------- Generated SSA form -------\n"); dump_hsa_cfun (dump_file); diff --git a/gcc/hsa-regalloc.c b/gcc/hsa-regalloc.c index f8e83ecf..037c269 100644 --- a/gcc/hsa-regalloc.c +++ b/gcc/hsa-regalloc.c @@ -606,7 +606,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); @@ -638,7 +638,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); @@ -703,7 +703,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); @@ -711,7 +711,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); -- 2.7.1