Move vr_values out of vrp_prop into execute_vrp so it can be shared.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 11 Nov 2020 20:04:58 +0000 (21:04 +0100)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 13 Nov 2020 07:34:49 +0000 (08:34 +0100)
commit40c4eb67f563ec42e98b30dddacfece562f22fc8
tree3a264f01e12c8f731ad1f286fac07afc63777060
parent022b99bcba5a3516d4de732f156cbd684c8e812d
Move vr_values out of vrp_prop into execute_vrp so it can be shared.

vr_values is being shared among the propagator and the folder and
passed around.  I've pulled it out from the propagator so it can be
passed around to each, instead of being publicly accessible from the
propagator.

gcc/ChangeLog:

* tree-vrp.c (class vrp_prop): Rename vr_values to m_vr_values.
(vrp_prop::vrp_prop): New.
(vrp_prop::initialize): Rename vr_values to m_vr_values.
(vrp_prop::visit_stmt): Same.
(vrp_prop::visit_phi): Same.
(vrp_prop::finalize): Same.
(execute_vrp): Instantiate vrp_vr_values and pass it to folder
and propagator.
gcc/tree-vrp.c