aboutsummaryrefslogtreecommitdiff
path: root/gcc/hsa-regalloc.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-02-29 16:15:27 +0100
committerMartin Liska <marxin@gcc.gnu.org>2016-02-29 15:15:27 +0000
commit2998cb96c8128b826c357caed14d75961115c441 (patch)
tree9d7ca5317190476e4deee3262815c49663b1b8d0 /gcc/hsa-regalloc.c
parentfd9fbdb33931bae74c6745bbfc3d46fc69d0c410 (diff)
downloadgcc-2998cb96c8128b826c357caed14d75961115c441.zip
gcc-2998cb96c8128b826c357caed14d75961115c441.tar.gz
gcc-2998cb96c8128b826c357caed14d75961115c441.tar.bz2
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
Diffstat (limited to 'gcc/hsa-regalloc.c')
-rw-r--r--gcc/hsa-regalloc.c8
1 files changed, 4 insertions, 4 deletions
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);