aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-relation.cc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2023-10-09 10:01:11 -0400
committerAndrew MacLeod <amacleod@redhat.com>2023-10-09 12:15:17 -0400
commit5ee51119d1345f3f13af784455a4ae466766912b (patch)
tree6e201ac2288af77dde6ba7de769db831327bb9f3 /gcc/value-relation.cc
parentdae21448b60874dd6b8501c2f33c956d6c631e5f (diff)
downloadgcc-5ee51119d1345f3f13af784455a4ae466766912b.zip
gcc-5ee51119d1345f3f13af784455a4ae466766912b.tar.gz
gcc-5ee51119d1345f3f13af784455a4ae466766912b.tar.bz2
Remove unused get_identity_relation.
Turns out we didnt need this as there is no unordered relations managed by the oracle. * gimple-range-gori.cc (gori_compute::compute_operand1_range): Do not call get_identity_relation. (gori_compute::compute_operand2_range): Ditto. * value-relation.cc (get_identity_relation): Remove. * value-relation.h (get_identity_relation): Remove protyotype.
Diffstat (limited to 'gcc/value-relation.cc')
-rw-r--r--gcc/value-relation.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/value-relation.cc b/gcc/value-relation.cc
index 8fea4aa..a2ae396 100644
--- a/gcc/value-relation.cc
+++ b/gcc/value-relation.cc
@@ -183,20 +183,6 @@ relation_transitive (relation_kind r1, relation_kind r2)
return relation_kind (rr_transitive_table[r1][r2]);
}
-// When operands of a statement are identical ssa_names, return the
-// approriate relation between operands for NAME == NAME, given RANGE.
-//
-relation_kind
-get_identity_relation (tree name, vrange &range ATTRIBUTE_UNUSED)
-{
- // Return VREL_UNEQ when it is supported for floats as appropriate.
- if (frange::supports_p (TREE_TYPE (name)))
- return VREL_EQ;
-
- // Otherwise return VREL_EQ.
- return VREL_EQ;
-}
-
// This vector maps a relation to the equivalent tree code.
static const tree_code relation_to_code [VREL_LAST] = {