aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-range.cc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2021-06-17 09:07:19 -0400
committerAndrew MacLeod <amacleod@redhat.com>2021-06-17 10:12:38 -0400
commit8cbaa09333d3e338a438b067a0c18d2d9673fc1a (patch)
treeb2c28e870afb6f127bbe0701ec5ac504a53ef920 /gcc/gimple-range.cc
parent2b87f3318cf6334a3a42dcf27f2fdec0fce04665 (diff)
downloadgcc-8cbaa09333d3e338a438b067a0c18d2d9673fc1a.zip
gcc-8cbaa09333d3e338a438b067a0c18d2d9673fc1a.tar.gz
gcc-8cbaa09333d3e338a438b067a0c18d2d9673fc1a.tar.bz2
Fix spacing and typos in comments.
* gimple-range-cache.cc: Comment cleanups. * gimple-range-gori.cc: Comment cleanups. * gimple-range.cc: Comment/spacing cleanups * value-range.h: Comment cleanups.
Diffstat (limited to 'gcc/gimple-range.cc')
-rw-r--r--gcc/gimple-range.cc20
1 files changed, 8 insertions, 12 deletions
diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc
index 15c65f1..624cfb1 100644
--- a/gcc/gimple-range.cc
+++ b/gcc/gimple-range.cc
@@ -135,20 +135,18 @@ fur_edge::query ()
return m_query;
}
-
// Instantiate a stmt based fur_source.
-
fur_stmt::fur_stmt (gimple *s, range_query *q)
{
- m_stmt= s;
+ m_stmt = s;
if (q)
m_query = q;
else
m_query = get_global_range_query ();
}
-// Retirenve range of EXPR as it occurs as a use on stmt M_STMT.
+// Retrieve range of EXPR as it occurs as a use on stmt M_STMT.
bool
fur_stmt::get_operand (irange &r, tree expr)
@@ -175,8 +173,8 @@ fur_stmt::query ()
return m_query;
}
-// This version of fur_source will pick a range from a stmt, and register
-// also dependencies via a gori_compute object. This is mostly an internal API.
+// This version of fur_source will pick a range from a stmt, and also register
+// dependencies via a gori_compute object. This is mostly an internal API.
class fur_depend : public fur_stmt
{
@@ -187,16 +185,16 @@ private:
gori_compute *m_gori;
};
-// Instantiate a stmt based fur_source witrh a GORI object
+// Instantiate a stmt based fur_source with a GORI object
+
inline
fur_depend::fur_depend (gimple *s, gori_compute *gori, range_query *q)
- : fur_stmt (s, q)
+ : fur_stmt (s, q)
{
gcc_checking_assert (gori);
m_gori = gori;
}
-
// find and add any dependnecy between LHS and RHS
void
@@ -205,7 +203,6 @@ fur_depend::register_dependency (tree lhs, tree rhs)
m_gori->register_dependency (lhs, rhs);
}
-
// This version of fur_source will pick a range up from a list of ranges
// supplied by the caller.
@@ -254,7 +251,7 @@ fur_list::fur_list (unsigned num, irange *list)
m_limit = num;
}
-// Get the next operand from the vector, ensure types are compatible,
+// Get the next operand from the vector, ensure types are compatible.
bool
fur_list::get_operand (irange &r, tree expr)
@@ -305,7 +302,6 @@ fold_range (irange &r, gimple *s, unsigned num_elements, irange *vector)
return f.fold_stmt (r, s, src);
}
-
// Fold stmt S into range R using range query Q.
bool