Skip to content

Commit

Permalink
Tweak comments.
Browse files Browse the repository at this point in the history
Adjust some mispellings in comments.

	* gimple-range-cache.cc: Adjust comments.
	* gimple-range-infer.cc: Adjust comments.
	* gimple-range-infer.h: Adjust comments.
	* gimple-range.cc: Adjust comments.
  • Loading branch information
andrewwmacleod committed May 25, 2022
1 parent 156d7d8 commit 761cc32
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gcc/gimple-range-cache.cc
Expand Up @@ -1440,7 +1440,7 @@ ranger_cache::apply_inferred_ranges (gimple *s)
if (infer.num () == 0)
return;

// Do not update the on-netry cache for block ending stmts.
// Do not update the on-entry cache for block ending stmts.
if (stmt_ends_bb_p (s))
{
edge_iterator ei;
Expand Down
2 changes: 1 addition & 1 deletion gcc/gimple-range-infer.cc
Expand Up @@ -120,7 +120,7 @@ gimple_infer_range::gimple_infer_range (gimple *s)

// -------------------------------------------------------------------------

// This class is an element in list of infered ranges.
// This class is an element in the list of infered ranges.

class exit_range
{
Expand Down
4 changes: 2 additions & 2 deletions gcc/gimple-range-infer.h
Expand Up @@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see

// This class manages an on-demand summary of inferred ranges for a statement.
// It can be instantiated as required and provides a list of inferred ranges.
// New inferred ranges should added in the constructor of this class.
// New inferred ranges should be added in the constructor of this class.

class gimple_infer_range
{
Expand All @@ -49,7 +49,7 @@ class gimple_infer_range

// This class manages a list of inferred ranges for each basic block.
// As inferences are made, they can be registered to a block and later
// queried. WHen constructed with a TRUE flag, immediate uses chains are
// queried. When constructed with a TRUE flag, immediate uses chains are
// followed the first time a name is referenced and block populated if
// there are any inferred ranges.

Expand Down
2 changes: 1 addition & 1 deletion gcc/gimple-range.cc
Expand Up @@ -118,7 +118,7 @@ gimple_ranger::range_of_expr (irange &r, tree expr, gimple *stmt)
// If name is defined in this block, try to get an range from S.
if (def_stmt && gimple_bb (def_stmt) == bb)
{
// Declared in ths block, if it has a global set, check for an
// Declared in this block, if it has a global set, check for an
// override from a block walk, otherwise calculate it.
if (m_cache.get_global_range (r, expr))
m_cache.block_range (r, bb, expr, false);
Expand Down

0 comments on commit 761cc32

Please sign in to comment.