Move vrp_simplify_cond_using_ranges into the simplifier.
authorAndrew MacLeod <amacleod@redhat.com>
Mon, 25 Oct 2021 22:04:06 +0000 (18:04 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Mon, 25 Oct 2021 23:39:50 +0000 (19:39 -0400)
commitf5bacd9c5be5e129688d9c91eeed05e7b968117e
treeb4ff3281056503053939cfbc7ad8ef91ba7315ea
parentcb153222404e2e149aa65a4b3139b09477551203
Move vrp_simplify_cond_using_ranges into the simplifier.

This static VRP routine does a simplification with casted conditions.  Add it
to the general simplfier, and continue to invoke if from the VRP folder.

* tree-vrp.c (vrp_simplify_cond_using_ranges): Add return type and
move to vr-values.c.
(simplify_casted_conds): Move to vrp_folder class.
(execute_vrp): Call via vrp_folder now.
* vr-values.c (simplify_cond_using_ranges_1): Call simplify_casted_cond.
(simplify_using_ranges::simplify_casted_cond): Relocate from tree-vrp.c.
* vr-values.h (simplify_casted_cond): Add prototype.
gcc/tree-vrp.c
gcc/vr-values.c
gcc/vr-values.h