Tame path_range_query::compute_imports
commite4fbcfc0b130f872b8dd9d5089fb71ee5ed9459a
authorRichard Biener <rguenther@suse.de>
Thu, 11 Aug 2022 11:28:44 +0000 (11 13:28 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 11 Aug 2022 13:01:21 +0000 (11 15:01 +0200)
tree1af9b3d1d6f460e538920b9ff8f383760da81fff
parent16b013c9d9b4d950f89821476e791bf18c1295df
Tame path_range_query::compute_imports

This avoids going BBs outside of the path when adding def chains
to the set of imports.  It also syncs the code with
range_def_chain::get_def_chain to not miss out on some imports
this function would identify.

* gimple-range-path.cc (path_range_query::compute_imports):
Restrict walking SSA defs to blocks inside the path.  Track
the same operands as range_def_chain::get_def_chain does.
gcc/gimple-range-path.cc