aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-path.h
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2021-11-29 14:49:59 +0100
committerAldy Hernandez <aldyh@redhat.com>2021-12-01 17:11:12 +0100
commit54ebec35abec09a24b47b997172622ca0d8e2318 (patch)
treea0a6cf09e652417af03fab1fd85e7d5a9d164dce /gcc/gimple-range-path.h
parent056551414a328b427c4bf4955b9a3832f344685c (diff)
downloadgcc-54ebec35abec09a24b47b997172622ca0d8e2318.zip
gcc-54ebec35abec09a24b47b997172622ca0d8e2318.tar.gz
gcc-54ebec35abec09a24b47b997172622ca0d8e2318.tar.bz2
path solver: Use only one ssa_global_cache.
We're using a temporary range cache while computing ranges for PHIs to make sure the real cache doesn't get set until all PHIs are computed. With the ltrans beast in LTO mode this causes undue overhead. Since we already have a bitmap to indicate whether there's a cache entry, we can avoid the extra cache object by clearing it while PHIs are being calculated. gcc/ChangeLog: PR tree-optimization/103409 * gimple-range-path.cc (path_range_query::compute_ranges_in_phis): Do all the work with just one ssa_global_cache. * gimple-range-path.h: Remove m_tmp_phi_cache.
Diffstat (limited to 'gcc/gimple-range-path.h')
-rw-r--r--gcc/gimple-range-path.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/gimple-range-path.h b/gcc/gimple-range-path.h
index 57a9ae9..77c92c07 100644
--- a/gcc/gimple-range-path.h
+++ b/gcc/gimple-range-path.h
@@ -82,8 +82,6 @@ private:
// Range cache for SSA names.
ssa_global_cache *m_cache;
- ssa_global_cache m_tmp_phi_cache;
-
// Set for each SSA that has an active entry in the cache.
bitmap m_has_cache_entry;