From 9fde43096e734314d7fcde37407700fb9e853d8a Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Thu, 14 May 2020 16:38:30 +0200 Subject: Turn off GORI/ranger dumps while dumping known ranges. Since the ranger is on-demand, dumping the known range for each SSA use causes us to calculate the ranges ahead of time, and confuse the listing. For now, turn it off, so the range calculation isn't displayed. --- gcc/vr-values.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc') diff --git a/gcc/vr-values.c b/gcc/vr-values.c index d28fc46..8383f8b 100644 --- a/gcc/vr-values.c +++ b/gcc/vr-values.c @@ -2554,6 +2554,8 @@ simplify_using_ranges::vrp_visit_cond_stmt (gcond *stmt, edge *taken_edge_p) *taken_edge_p = NULL; + dump_flags_t save_flags = dump_flags; + dump_flags &= ~TDF_GORI; if (dump_file && (dump_flags & TDF_DETAILS)) { tree use; @@ -2579,6 +2581,7 @@ simplify_using_ranges::vrp_visit_cond_stmt (gcond *stmt, edge *taken_edge_p) if (!first) fprintf (dump_file, "\n"); } + dump_flags = save_flags; /* Compute the value of the predicate COND by checking the known ranges of each of its operands. -- cgit v1.1