aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-cache.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2024-06-13 15:35:55 -0400
committerAndrew MacLeod <amacleod@redhat.com>2024-06-14 15:16:38 -0400
commitd40034c489c3d4ae149759ba051ef1d661a6c243 (patch)
tree72ceffcdf1be5819c7eb30fabf5034667c054e00 /gcc/gimple-range-cache.h
parent80c6b6a21b5d3e4f7c5fddbe88e344b608ffb010 (diff)
downloadgcc-d40034c489c3d4ae149759ba051ef1d661a6c243.zip
gcc-d40034c489c3d4ae149759ba051ef1d661a6c243.tar.gz
gcc-d40034c489c3d4ae149759ba051ef1d661a6c243.tar.bz2
Add merge facility to ssa_lazy_cache.
The ssa_lazy_cache has a routine to merge a range for an ssa-name with an existing range in the cache. This adds a method which will merge all elements of another ssa_lazy_cache. * gimple-range-cache.cc (ssa_lazy_cache::merge): New. * gimple-range-cache.h (ssa_lazy_cache::merge): New prototype.
Diffstat (limited to 'gcc/gimple-range-cache.h')
-rw-r--r--gcc/gimple-range-cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gimple-range-cache.h b/gcc/gimple-range-cache.h
index c7499f9..63410d5 100644
--- a/gcc/gimple-range-cache.h
+++ b/gcc/gimple-range-cache.h
@@ -87,6 +87,7 @@ public:
virtual bool get_range (vrange &r, tree name) const;
virtual void clear_range (tree name);
virtual void clear ();
+ void merge (const ssa_lazy_cache &);
protected:
bitmap active_p;
};