]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove path_range_query constructor that takes an edge.
authorAldy Hernandez <aldyh@redhat.com>
Thu, 18 Aug 2022 15:55:19 +0000 (17:55 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 19 Aug 2022 10:29:05 +0000 (12:29 +0200)
commit338a296dd76bf3d253a990ddb65e1bbef0c680a7
tree3993a735445686c2eb1887757c4562e2be8ebff5
parent81e20a6eb9e6b7eb62a09ac58811387f0343bd14
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.
gcc/gimple-range-path.cc
gcc/gimple-range-path.h
gcc/tree-ssa-loop-ch.cc