aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2021-05-25 14:41:16 -0400
committerAndrew MacLeod <amacleod@redhat.com>2021-05-25 19:28:04 -0400
commit35c78c6fc54721e067ed3a30ddd9184b45c5981d (patch)
treebe9a19330dd956397a447d9aa71f7fa1b3baf159 /gcc/gimple-range.h
parent10b286ce335cca135a45a92581b28146f3e3209b (diff)
downloadgcc-35c78c6fc54721e067ed3a30ddd9184b45c5981d.zip
gcc-35c78c6fc54721e067ed3a30ddd9184b45c5981d.tar.gz
gcc-35c78c6fc54721e067ed3a30ddd9184b45c5981d.tar.bz2
Tweak location of non-null calls. revamp ranger debug output.
range_on_entry shouldnt be checking non-null, but we sometimes should after calling it. change the debug output a bit. * gimple-range.cc (gimple_ranger::range_of_expr): Non-null should be checked only after range_of_stmt, not range_on_entry. (gimple_ranger::range_on_entry): Check for non-null in any predecessor block, if it is not already non-null. (gimple_ranger::range_on_exit): DOnt check for non-null after range on entry call. (gimple_ranger::dump_bb): New. Split from dump. (gimple_ranger::dump): Adjust. * gimple-range.h (class gimple_ranger): Adjust.
Diffstat (limited to 'gcc/gimple-range.h')
-rw-r--r--gcc/gimple-range.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gimple-range.h b/gcc/gimple-range.h
index 5320506..08035a5 100644
--- a/gcc/gimple-range.h
+++ b/gcc/gimple-range.h
@@ -66,6 +66,7 @@ public:
virtual void range_on_exit (irange &r, basic_block bb, tree name);
void export_global_ranges ();
void dump (FILE *f);
+ void dump_bb (FILE *f, basic_block bb);
protected:
bool fold_range_internal (irange &r, gimple *s, tree name);
ranger_cache m_cache;