Commit 2998cb96 by Martin Liska Committed by Martin Liska

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
parent fd9fbdb3
2016-02-29 Martin Liska <mliska@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.
2016-02-19 Richard Biener <rguenther@suse.de>
PR tree-optimization/69980
......
......@@ -5498,7 +5498,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);
......
......@@ -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);
......
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