]> git.ipfire.org Git - thirdparty/gcc.git/commit
path solver: Only compute relations for imports.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 3 Nov 2021 07:23:25 +0000 (08:23 +0100)
committerAldy Hernandez <aldyh@redhat.com>
Thu, 4 Nov 2021 14:37:35 +0000 (15:37 +0100)
commit5ea1ce43b6070aaa94882e8b15f3340344aaa6b2
tree26bb903dd1bad15e6546490500845e75be3e92dc
parent333efaea633971912f2208d37b7b62992759d400
path solver: Only compute relations for imports.

We are currently calculating implicit PHI relations for all PHI
arguments.  This creates unecessary work, as we only care about SSA
names in the import bitmap.  Similarly for inter-path relationals.  We
can avoid things not in the bitmap.

Tested on x86-64 and ppc64le Linux with the usual regstrap.  I also
verified that the before and after number of threads was the same
in a suite of .ii files from a bootstrap.

gcc/ChangeLog:

PR tree-optimization/102943
* gimple-range-path.cc (path_range_query::compute_phi_relations):
Only compute relations for SSA names in the import list.
(path_range_query::compute_outgoing_relations): Same.
* gimple-range-path.h (path_range_query::import_p): New.
gcc/gimple-range-path.cc
gcc/gimple-range-path.h