aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2020-05-14 16:38:30 +0200
committerAldy Hernandez <aldyh@redhat.com>2020-05-15 08:50:17 +0200
commit9fde43096e734314d7fcde37407700fb9e853d8a (patch)
tree3cd75901461a2cb726ed9bc65bab2bde05f3e4af /gcc
parent0a16792f3523100a84e0bf64fc7ef049153d4b0e (diff)
downloadgcc-9fde43096e734314d7fcde37407700fb9e853d8a.zip
gcc-9fde43096e734314d7fcde37407700fb9e853d8a.tar.gz
gcc-9fde43096e734314d7fcde37407700fb9e853d8a.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/vr-values.c3
1 files changed, 3 insertions, 0 deletions
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.