ira-conflicts.c (print_allocno_conflicts): Always print something, even for allocno...
authorPeter Bergner <bergner@linux.ibm.com>
Wed, 17 Apr 2019 19:22:15 +0000 (19:22 +0000)
committerPeter Bergner <bergner@gcc.gnu.org>
Wed, 17 Apr 2019 19:22:15 +0000 (14:22 -0500)
gcc/
* ira-conflicts.c (print_allocno_conflicts): Always print something,
even for allocno's with no conflicts.
(print_conflicts): Print an extra newline.

From-SVN: r270420

gcc/ChangeLog
gcc/ira-conflicts.c

index 2138006a8b5b2b0dec779de0384807892c9dd38b..3b01ff7cbf69383f52466fe126b26125b3ed801a 100644 (file)
@@ -1,3 +1,9 @@
+2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
+
+       * ira-conflicts.c (print_allocno_conflicts): Always print something,
+       even for allocno's with no conflicts.
+       (print_conflicts): Print an extra newline.
+
 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * auto-inc-dec.c (attempt_change): Set the alignment of the
index 5bd6c0c3d7a864bc6b5e20f33e333ab2b45e4e89..9a3e3811dbd93d98f66c757955ddad06d2cc3fe8 100644 (file)
@@ -633,7 +633,12 @@ print_allocno_conflicts (FILE * file, bool reg_p, ira_allocno_t a)
       ira_object_conflict_iterator oci;
 
       if (OBJECT_CONFLICT_ARRAY (obj) == NULL)
-       continue;
+       {
+         fprintf (file, "\n;;     total conflict hard regs:\n");
+         fprintf (file, ";;     conflict hard regs:\n\n");
+         continue;
+       }
+
       if (n > 1)
        fprintf (file, "\n;;   subobject %d:", i);
       FOR_EACH_OBJECT_CONFLICT (obj, conflict_obj, oci)
@@ -683,6 +688,7 @@ print_conflicts (FILE *file, bool reg_p)
 
   FOR_EACH_ALLOCNO (a, ai)
     print_allocno_conflicts (file, reg_p, a);
+  putc ('\n', file);
 }
 
 /* Print information about allocno or only regno (if REG_P) conflicts