aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2019-11-05 15:39:11 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2019-11-05 15:39:11 +0000
commit028d81b1599c365d8c60222ec5631a8f111d8574 (patch)
tree2593124dc042ecb237d2105645807c03717b03b9 /gcc/tree-ssa-dom.c
parent3619076a631eac18c0484acf6dff3e5e94b8e251 (diff)
downloadgcc-028d81b1599c365d8c60222ec5631a8f111d8574.zip
gcc-028d81b1599c365d8c60222ec5631a8f111d8574.tar.gz
gcc-028d81b1599c365d8c60222ec5631a8f111d8574.tar.bz2
The base class for ranges is currently value_range_base, which is rather long and cumbersome.
The base class for ranges is currently value_range_base, which is rather long and cumbersome. It also occurs more often than the derived class of value_range. To avoid confusion, and save typing, this patch does a global rename from value_range to value_range_equiv, and from value_range_base to value_range. This way, the base class is simply value_range, and the derived class is value_range_equiv which explicitly states what it does. From-SVN: r277847
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index bcb5cf4..44a4289 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -901,7 +901,7 @@ simplify_stmt_for_jump_threading (gimple *stmt,
if (TREE_CODE (op) != SSA_NAME)
return NULL_TREE;
- const value_range *vr = x_vr_values->get_value_range (op);
+ const value_range_equiv *vr = x_vr_values->get_value_range (op);
if (vr->undefined_p ()
|| vr->varying_p ()
|| vr->symbolic_p ())
@@ -963,9 +963,9 @@ simplify_stmt_for_jump_threading (gimple *stmt,
{
edge dummy_e;
tree dummy_tree;
- value_range new_vr;
+ value_range_equiv new_vr;
x_vr_values->extract_range_from_stmt (stmt, &dummy_e,
- &dummy_tree, &new_vr);
+ &dummy_tree, &new_vr);
tree singleton;
if (new_vr.singleton_p (&singleton))
return singleton;