aboutsummaryrefslogtreecommitdiff
path: root/gcc/ssa-range-global.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ssa-range-global.c')
-rw-r--r--gcc/ssa-range-global.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ssa-range-global.c b/gcc/ssa-range-global.c
index d477be34b19..12a78f4c18b 100644
--- a/gcc/ssa-range-global.c
+++ b/gcc/ssa-range-global.c
@@ -59,6 +59,7 @@ public:
~ssa_global_cache ();
bool get_global_range (irange& r, tree name) const;
void set_global_range (tree name, const irange&r);
+ void clear_global_range (tree name);
void clear ();
void copy_to_range_info ();
void dump (FILE *f = stderr);
@@ -112,6 +113,13 @@ set_global_ssa_range (tree name, const irange&r)
globals->set_global_range (name, r);
}
+/* Clear the global range for NAME. */
+void
+clear_global_ssa_range (tree name)
+{
+ gcc_assert (globals);
+ globals->clear_global_range (name);
+}
// ---------------------------------------------------------------
/* Initialize a global cache. */
@@ -157,6 +165,13 @@ ssa_global_cache::set_global_range (tree name, const irange& r)
}
}
+/* Set the range for NAME to R in the glonbal cache. */
+void
+ssa_global_cache::clear_global_range (tree name)
+{
+ tab[SSA_NAME_VERSION (name)] = NULL;
+}
+
/* Clear the global cache. */
void
ssa_global_cache::clear ()