Fix typo in dump_tree_statistics.
authorMartin Liska <mliska@suse.cz>
Fri, 25 Oct 2019 09:13:12 +0000 (11:13 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 25 Oct 2019 09:13:12 +0000 (09:13 +0000)
2019-10-25  Martin Liska  <mliska@suse.cz>

* tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.

From-SVN: r277440

gcc/ChangeLog
gcc/tree.c

index 89448b1166aacf68434910fa2cd3b3fe9cc37f83..3601030bca8d05ae11995d697d17c1d18a9c4392 100644 (file)
@@ -1,3 +1,7 @@
+2019-10-25  Martin Liska  <mliska@suse.cz>
+
+       * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
+
 2019-10-25  Richard Sandiford  <richard.sandiford@arm.com>
 
        * tree-vect-loop.c (vectorizable_reduction): Restrict the
index 2bee1d255ff006d32455f504ef62cc6b9aca193c..23fe5bffd3749d346da1bf3e31995784470d2067 100644 (file)
@@ -9673,7 +9673,7 @@ dump_tree_statistics (void)
          {
            unsigned j = indices[i];
            fprintf (stderr, "%-20s %6" PRIu64 "%c %9" PRIu64 "%c\n",
-                    tree_node_kind_names[i], SIZE_AMOUNT (tree_node_counts[j]),
+                    tree_node_kind_names[j], SIZE_AMOUNT (tree_node_counts[j]),
                     SIZE_AMOUNT (tree_node_sizes[j]));
            total_nodes += tree_node_counts[j];
            total_bytes += tree_node_sizes[j];