aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2021-06-22 09:20:47 -0400
committerAndrew MacLeod <amacleod@redhat.com>2021-06-23 10:24:30 -0400
commit9d674b735f22aa9cf85629851783ce38f25087b5 (patch)
tree8e954ddd8bcd5f47ce8efc692890676f701aa932 /gcc
parent402c818ac0b19d168e9ffc0b3413344dd6020f6a (diff)
downloadgcc-9d674b735f22aa9cf85629851783ce38f25087b5.zip
gcc-9d674b735f22aa9cf85629851783ce38f25087b5.tar.gz
gcc-9d674b735f22aa9cf85629851783ce38f25087b5.tar.bz2
Dump should be read only. Do not trigger new lookups.
* gimple-range.cc (dump_bb): Use range_on_edge from the cache.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gimple-range.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc
index 385cecf..49d2650 100644
--- a/gcc/gimple-range.cc
+++ b/gcc/gimple-range.cc
@@ -1457,7 +1457,7 @@ gimple_ranger::dump_bb (FILE *f, basic_block bb)
m_cache.block_range (range, bb, name, false) ||
m_cache.block_range (range, e->dest, name, false))
{
- range_on_edge (range, e, name);
+ m_cache.range_on_edge (range, e, name);
if (!range.varying_p ())
{
fprintf (f, "%d->%d ", e->src->index,