vr-values.h (vr_values::swap_vr_value): New.
authorRichard Biener <rguenther@suse.de>
Wed, 31 Jul 2019 10:55:27 +0000 (10:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 31 Jul 2019 10:55:27 +0000 (10:55 +0000)
commitf86c2e7196bdf285c0245064be96a0b2816e013a
tree5204ab9fd288bbc885bb9cf97b5d19de5a1051ae
parentf39b06395e90d8c70548eedadc30e880f6426b26
vr-values.h (vr_values::swap_vr_value): New.

2019-07-31  Richard Biener  <rguenther@suse.de>

* vr-values.h (vr_values::swap_vr_value): New.
(vr_values::free_value_range): likewise.
* vr-values.c (vr_values::swap_vr_value): Implement.
* gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
Do not return a range or take a var.
(evrp_range_analyzer::stack): Change back to recording a non-const
value_range *.
* gimple-ssa-evrp-analyze.c
(evrp_range_analyzer::record_ranges_from_stmt): Free unused
value-range.
(evrp_range_analyzer::pop_to_marker): Adjust.
(evrp_range_analyzer::push_value_range): Use new swap_vr_value.
(evrp_range_analyzer::pop_value_range): Likewise.  Free the
no longer needed value-range.

From-SVN: r273930
gcc/ChangeLog
gcc/gimple-ssa-evrp-analyze.c
gcc/gimple-ssa-evrp-analyze.h
gcc/vr-values.c
gcc/vr-values.h