path solver: Solve PHI imports first for ranges.
authorAldy Hernandez <aldyh@redhat.com>
Fri, 12 Nov 2021 15:08:01 +0000 (16:08 +0100)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 12 Nov 2021 19:42:56 +0000 (20:42 +0100)
commit264f061997c0a5349cdce6d73f0dc167ac7fc8f4
tree47174c21fb162cf48ed57d8a8155b07c51e3d2cd
parentb301cb43a795884884977703a3767e8765d193d1
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.
gcc/gimple-range-path.cc