diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2022-08-18 17:55:19 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2022-08-19 12:29:05 +0200 |
commit | 338a296dd76bf3d253a990ddb65e1bbef0c680a7 (patch) | |
tree | 3993a735445686c2eb1887757c4562e2be8ebff5 /gcc/gimple-range-path.cc | |
parent | 81e20a6eb9e6b7eb62a09ac58811387f0343bd14 (diff) | |
download | gcc-338a296dd76bf3d253a990ddb65e1bbef0c680a7.zip gcc-338a296dd76bf3d253a990ddb65e1bbef0c680a7.tar.gz gcc-338a296dd76bf3d253a990ddb65e1bbef0c680a7.tar.bz2 |
Remove path_range_query constructor that takes an edge.
The path_range_query constructor that takes an edge is really a
convenience function for the loop-ch pass. It feels wrong to pollute
the API with such a specialized function that could be done with
a small inline function closer to its user.
As an added benefit, we remove one use of reset_path. The last
remaining one is the forward threader one.
Tested, thread-counted, and benchmarked on x86-64 Linux.
gcc/ChangeLog:
* gimple-range-path.cc (path_range_query::path_range_query):
Remove constructor that takes edge.
* gimple-range-path.h (class path_range_query): Same.
* tree-ssa-loop-ch.cc (edge_range_query): New.
(entry_loop_condition_is_static): Call edge_range_query.
Diffstat (limited to 'gcc/gimple-range-path.cc')
-rw-r--r-- | gcc/gimple-range-path.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/gcc/gimple-range-path.cc b/gcc/gimple-range-path.cc index ba7c2ed..bc2879c 100644 --- a/gcc/gimple-range-path.cc +++ b/gcc/gimple-range-path.cc @@ -59,21 +59,6 @@ path_range_query::path_range_query (gimple_ranger &ranger, bool resolve) m_oracle = new path_oracle (m_ranger.oracle ()); } -path_range_query::path_range_query (gimple_ranger &ranger, - edge e, - bool resolve) - : m_cache (new ssa_global_cache), - m_has_cache_entry (BITMAP_ALLOC (NULL)), - m_ranger (ranger), - m_resolve (resolve) -{ - m_oracle = new path_oracle (m_ranger.oracle ()); - auto_vec<basic_block> bbs (2); - bbs.quick_push (e->dest); - bbs.quick_push (e->src); - reset_path (bbs, NULL); -} - path_range_query::~path_range_query () { delete m_oracle; |