aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-cache.h
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2021-04-16 17:08:51 -0400
committerAndrew MacLeod <amacleod@redhat.com>2021-04-19 15:49:04 -0400
commit329d2f0df7d6d22c87ab3338b94caef68139cd58 (patch)
treef70ab418e58c0ff0b6008744c9a4f7f5becd4cb2 /gcc/gimple-range-cache.h
parentdc7d1c74ffb1cc85e67984632f581d526c783770 (diff)
downloadgcc-329d2f0df7d6d22c87ab3338b94caef68139cd58.zip
gcc-329d2f0df7d6d22c87ab3338b94caef68139cd58.tar.gz
gcc-329d2f0df7d6d22c87ab3338b94caef68139cd58.tar.bz2
tree-optimization/100081 - Limit depth of logical expression windback.
Limit how many logical expressions GORI will look back through when evaluating outgoing edge range. PR tree-optimization/100081 * gimple-range-cache.h (ranger_cache): Inherit from gori_compute rather than gori_compute_cache. * gimple-range-gori.cc (is_gimple_logical_p): Move to top of file. (range_def_chain::m_logical_depth): New member. (range_def_chain::range_def_chain): Initialize m_logical_depth. (range_def_chain::get_def_chain): Don't build defchains through more than LOGICAL_LIMIT logical expressions. * params.opt (param_ranger_logical_depth): New.
Diffstat (limited to 'gcc/gimple-range-cache.h')
-rw-r--r--gcc/gimple-range-cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-range-cache.h b/gcc/gimple-range-cache.h
index c98e987..2b36a02 100644
--- a/gcc/gimple-range-cache.h
+++ b/gcc/gimple-range-cache.h
@@ -87,7 +87,7 @@ private:
// them available for gori-computes to query so outgoing edges can be
// properly calculated.
-class ranger_cache : public gori_compute_cache
+class ranger_cache : public gori_compute
{
public:
ranger_cache (class gimple_ranger &q);