aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range-cache.cc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2023-05-03 10:48:41 +0200
committerAldy Hernandez <aldyh@redhat.com>2023-05-06 07:42:00 +0200
commit143e6695b20d3522e11f6e74b587993f9f619ccb (patch)
tree8374c47e78dad5b36bd12343274f997cf55ecdb9 /gcc/gimple-range-cache.cc
parent8421f279e9eb00a2342ee3630dcdaf735b734fe8 (diff)
downloadgcc-143e6695b20d3522e11f6e74b587993f9f619ccb.zip
gcc-143e6695b20d3522e11f6e74b587993f9f619ccb.tar.gz
gcc-143e6695b20d3522e11f6e74b587993f9f619ccb.tar.bz2
Remove type from vrange_storage::equal_p.
The equal_p method in vrange_storage is only used to compare ranges that are the same type. No sense passing the type if it can be determined from the range being compared. gcc/ChangeLog: * gimple-range-cache.cc (sbr_sparse_bitmap::set_bb_range): Do not pass type to vrange_storage::equal_p. * value-range-storage.cc (vrange_storage::equal_p): Remove type. (irange_storage::equal_p): Same. (frange_storage::equal_p): Same. * value-range-storage.h (class frange_storage): Same.
Diffstat (limited to 'gcc/gimple-range-cache.cc')
-rw-r--r--gcc/gimple-range-cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-range-cache.cc b/gcc/gimple-range-cache.cc
index 92622fc..07c69ef 100644
--- a/gcc/gimple-range-cache.cc
+++ b/gcc/gimple-range-cache.cc
@@ -320,7 +320,7 @@ sbr_sparse_bitmap::set_bb_range (const_basic_block bb, const vrange &r)
// Loop thru the values to see if R is already present.
for (int x = 0; x < SBR_NUM; x++)
- if (!m_range[x] || m_range[x]->equal_p (r, m_type))
+ if (!m_range[x] || m_range[x]->equal_p (r))
{
if (!m_range[x])
m_range[x] = m_range_allocator->clone (r);