]> git.ipfire.org Git - thirdparty/gcc.git/commit
path solver: Move boolean import code to compute_imports.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 24 Nov 2021 16:58:43 +0000 (17:58 +0100)
committerAldy Hernandez <aldyh@redhat.com>
Thu, 25 Nov 2021 10:52:23 +0000 (11:52 +0100)
commitd1c1919ef8a18eea9d5c1741f8c9adaabf5571f2
tree7def615aac6435a038ca6c45f958f4fc4bed06d9
parent8acbd7bef6edbf537e3037174907029b530212f6
path solver: Move boolean import code to compute_imports.

In a follow-up patch I will be pruning the set of exported ranges
within blocks to avoid unnecessary work.  In order to do this, all the
interesting SSA names must be in the internal import bitmap ahead of
time.  I had already abstracted them out into compute_imports, but I
missed the boolean code.  This fixes the oversight.

There's a net gain of 25 threadable paths, which is unexpected but
welcome.

Tested on x86-64 & ppc64le Linux.

gcc/ChangeLog:

PR tree-optimization/103254
* gimple-range-path.cc (path_range_query::compute_ranges): Move
exported boolean code...
(path_range_query::compute_imports): ...here.
gcc/gimple-range-path.cc