From: Andrew MacLeod Date: Fri, 16 Oct 2020 19:13:24 +0000 (-0400) Subject: [PATCH] Don't display ranges for dead ssa-names. X-Git-Tag: upstream/12.2.0~12935 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e8d8f3b883cbcc19974f6b2438f54b05769a76c;p=platform%2Fupstream%2Fgcc.git [PATCH] Don't display ranges for dead ssa-names. Dont show names that have been removed. * vr-values.c (dump_all_value_ranges): Only dump names which are still active. --- diff --git a/gcc/vr-values.c b/gcc/vr-values.c index da0b249..e917704 100644 --- a/gcc/vr-values.c +++ b/gcc/vr-values.c @@ -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, ": ");