[PATCH] Don't display ranges for dead ssa-names.
authorAndrew MacLeod <amacleod@redhat.com>
Fri, 16 Oct 2020 19:13:24 +0000 (15:13 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 16 Oct 2020 19:13:24 +0000 (15:13 -0400)
Dont show names that have been removed.

* vr-values.c (dump_all_value_ranges): Only dump names which are
still active.

gcc/vr-values.c

index da0b249278b8ec19a0f034c3437fe7a503fadc0e..e917704d9bb5b99f3aa8722ad3ea83e22423f5ff 100644 (file)
@@ -1999,7 +1999,7 @@ vr_values::dump_all_value_ranges (FILE *file)
 
   for (i = 0; i < num_vr_values; i++)
     {
-      if (vr_value[i])
+      if (vr_value[i] && ssa_name (i))
        {
          print_generic_expr (file, ssa_name (i));
          fprintf (file, ": ");