Export global ranges during the VRP block walk.
authorAndrew MacLeod <amacleod@redhat.com>
Thu, 17 Feb 2022 00:59:34 +0000 (19:59 -0500)
committerAndrew MacLeod <amacleod@redhat.com>
Fri, 13 May 2022 13:57:03 +0000 (09:57 -0400)
commitaf34279921f4bb95b07c0be7fce9baeffafcb53d
tree0b08ab1d4fb5de1f669c4c7eadf02d3170a324b0
parent602a3161f425ee3fe325413eeab9792e8e07a2ff
Export global ranges during the VRP block walk.

VRP currently searches the ssa_name list for globals to exported after it
finishes running.  Recent changes have VRP calling a side-effect routine for
each stmt during the walk.  This change simply exports globals as they are
calculated the final time during the walk.

* gimple-range.cc (gimple_ranger::register_side_effects): First check
if the DEF should be exported as a global.
* tree-vrp.cc (rvrp_folder::pre_fold_bb): Process PHI side effects,
which will export globals.
(execute_ranger_vrp): Remove call to export_global_ranges.
gcc/gimple-range.cc
gcc/tree-vrp.cc