]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
HSA: reduce dump output w/o -details flag
authorMartin Liska <mliska@suse.cz>
Mon, 29 Feb 2016 15:15:27 +0000 (16:15 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 29 Feb 2016 15:15:27 +0000 (15:15 +0000)
* 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/ChangeLog
gcc/hsa-gen.c
gcc/hsa-regalloc.c

index b9bde65b6a2320b13dbde7152b6ee89d7ef19aef..6578a392b548d83f0765b590a156b284887c97ab 100644 (file)
@@ -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
index d7d39f09c1eff55bae71c64f4674e30cb72815a9..4881f24206b4c9cd63f3c2b1007c54ad136de4fd 100644 (file)
@@ -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);
index 9437132416ed344f3157123918f6339064d78d22..16cde8bb8acdc7d14d09fad5b06c167afb1fe388 100644 (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);