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
This commit is contained in:
parent
fd9fbdb339
commit
2998cb96c8
|
@ -1,3 +1,10 @@
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue