https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103202
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Aldy Hernandez <al...@gcc.gnu.org>: https://gcc.gnu.org/g:264f061997c0a5349cdce6d73f0dc167ac7fc8f4 commit r12-5216-g264f061997c0a5349cdce6d73f0dc167ac7fc8f4 Author: Aldy Hernandez <al...@redhat.com> Date: Fri Nov 12 16:08:01 2021 +0100 path solver: Solve PHI imports first for ranges. PHIs must be resolved first while solving ranges in a block, regardless of where they appear in the import bitmap. We went through a similar exercise for the relational code, but missed these. Tested on x86-64 & ppc64le Linux. gcc/ChangeLog: PR tree-optimization/103202 * gimple-range-path.cc (path_range_query::compute_ranges_in_block): Solve PHI imports first.