diff options
author | Jakub Jelinek <jakub@redhat.com> | 2023-03-23 15:25:50 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2023-03-23 15:25:50 +0100 |
commit | c46b5b0a2c10139379a25b0071aa8997af41220d (patch) | |
tree | 1f5bb7b6d823d1517c258b3e217efba6779d32fa /gcc/gimple-range-cache.cc | |
parent | 097e2afdde06eff42d158ace7165b4cb4dfab07c (diff) | |
download | gcc-c46b5b0a2c10139379a25b0071aa8997af41220d.zip gcc-c46b5b0a2c10139379a25b0071aa8997af41220d.tar.gz gcc-c46b5b0a2c10139379a25b0071aa8997af41220d.tar.bz2 |
ranger: Ranger meets aspell
I've noticed a comment typo in tree-vrp.cc and decided to quickly
skim aspell -c on the ranger sources (with quick I on everything that
looked ok or roughly ok).
But not being a native English speaker, I could get stuff wrong.
2023-03-23 Jakub Jelinek <jakub@redhat.com>
* value-range.cc (irange::irange_union, irange::intersect): Fix
comment spelling bugs.
* gimple-range-trace.cc (range_tracer::do_header): Likewise.
* gimple-range-trace.h: Likewise.
* gimple-range-edge.cc: Likewise.
(gimple_outgoing_range_stmt_p,
gimple_outgoing_range::switch_edge_range,
gimple_outgoing_range::edge_range_p): Likewise.
* gimple-range.cc (gimple_ranger::prefill_stmt_dependencies,
gimple_ranger::fold_stmt, gimple_ranger::register_transitive_infer,
assume_query::assume_query, assume_query::calculate_phi): Likewise.
* gimple-range-edge.h: Likewise.
* value-range.h (Value_Range::set, Value_Range::lower_bound,
Value_Range::upper_bound, frange::set_undefined): Likewise.
* gimple-range-gori.h (range_def_chain::depend, gori_map::m_outgoing,
gori_compute): Likewise.
* gimple-range-fold.h (fold_using_range): Likewise.
* gimple-range-path.cc (path_range_query::compute_ranges_in_phis):
Likewise.
* gimple-range-gori.cc (range_def_chain::in_chain_p,
range_def_chain::dump, gori_map::calculate_gori,
gori_compute::compute_operand_range_switch,
gori_compute::logical_combine, gori_compute::refine_using_relation,
gori_compute::compute_operand1_range, gori_compute::may_recompute_p):
Likewise.
* gimple-range.h: Likewise.
(enable_ranger): Likewise.
* range-op.h (empty_range_varying): Likewise.
* value-query.h (value_query): Likewise.
* gimple-range-cache.cc (block_range_cache::set_bb_range,
block_range_cache::dump, ssa_global_cache::clear_global_range,
temporal_cache::temporal_value, temporal_cache::current_p,
ranger_cache::range_of_def, ranger_cache::propagate_updated_value,
ranger_cache::range_from_dom, ranger_cache::register_inferred_value):
Likewise.
* gimple-range-fold.cc (fur_edge::get_phi_operand,
fur_stmt::get_operand, gimple_range_adjustment,
fold_using_range::range_of_phi,
fold_using_range::relation_fold_and_or): Likewise.
* value-range-storage.h (irange_storage_slot::MAX_INTS): Likewise.
* value-query.cc (range_query::value_of_expr,
range_query::value_on_edge, range_query::query_relation): Likewise.
* tree-vrp.cc (remove_unreachable::remove_and_update_globals,
intersect_range_with_nonzero_bits): Likewise.
* gimple-range-infer.cc (gimple_infer_range::check_assume_func,
exit_range): Likewise.
* value-relation.h: Likewise.
(equiv_oracle, relation_trio::relation_trio, value_relation,
value_relation::value_relation, pe_min): Likewise.
* range-op-float.cc (range_operator_float::rv_fold,
frange_arithmetic, foperator_unordered_equal::op1_range,
foperator_div::rv_fold): Likewise.
* gimple-range-op.cc (cfn_clz::fold_range): Likewise.
* value-relation.cc (equiv_oracle::query_relation,
equiv_oracle::register_equiv, equiv_oracle::add_equiv_to_block,
value_relation::apply_transitive, relation_chain_head::find_relation,
dom_oracle::query_relation, dom_oracle::find_relation_block,
dom_oracle::find_relation_dom, path_oracle::register_equiv): Likewise.
* range-op.cc (range_operator::wi_fold_in_parts_equiv,
create_possibly_reversed_range, adjust_op1_for_overflow,
operator_mult::wi_fold, operator_exact_divide::op1_range,
operator_cast::lhs_op1_relation, operator_cast::fold_pair,
operator_cast::fold_range, operator_abs::wi_fold, range_op_cast_tests,
range_op_lshift_tests): Likewise.
Diffstat (limited to 'gcc/gimple-range-cache.cc')
-rw-r--r-- | gcc/gimple-range-cache.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/gimple-range-cache.cc b/gcc/gimple-range-cache.cc index 546262c..cc56fd4 100644 --- a/gcc/gimple-range-cache.cc +++ b/gcc/gimple-range-cache.cc @@ -357,7 +357,7 @@ block_range_cache::set_bb_range (tree name, const_basic_block bb, } else { - // Otherwise use the default vector implemntation. + // Otherwise use the default vector implementation. void *r = m_range_allocator->alloc (sizeof (sbr_vector)); m_ssa_ranges[v] = new (r) sbr_vector (TREE_TYPE (name), m_range_allocator); @@ -423,7 +423,7 @@ block_range_cache::dump (FILE *f) } } -// Print all known ranges on entry to blobk BB to file F. +// Print all known ranges on entry to block BB to file F. void block_range_cache::dump (FILE *f, basic_block bb, bool print_varying) @@ -525,7 +525,7 @@ ssa_global_cache::set_global_range (tree name, const vrange &r) return m != NULL; } -// Set the range for NAME to R in the glonbal cache. +// Set the range for NAME to R in the global cache. void ssa_global_cache::clear_global_range (tree name) @@ -618,7 +618,7 @@ temporal_cache::~temporal_cache () m_timestamp.release (); } -// Return the timestamp value for SSA, or 0 if there isnt one. +// Return the timestamp value for SSA, or 0 if there isn't one. inline unsigned temporal_cache::temporal_value (unsigned ssa) const @@ -628,7 +628,7 @@ temporal_cache::temporal_value (unsigned ssa) const return m_timestamp[ssa]; } -// Return TRUE if the timestampe for NAME is newer than any of its dependents. +// Return TRUE if the timestamp for NAME is newer than any of its dependents. // Up to 2 dependencies can be checked. bool @@ -885,7 +885,7 @@ ranger_cache::set_global_range (tree name, const vrange &r) } // Provide lookup for the gori-computes class to access the best known range -// of an ssa_name in any given basic block. Note, this does no additonal +// of an ssa_name in any given basic block. Note, this does no additional // lookups, just accesses the data that is already known. // Get the range of NAME when the def occurs in block BB. If BB is NULL @@ -1138,7 +1138,7 @@ ranger_cache::propagate_cache (tree name) // Check to see if an update to the value for NAME in BB has any effect // on values already in the on-entry cache for successor blocks. -// If it does, update them. Don't visit any blocks which dont have a cache +// If it does, update them. Don't visit any blocks which don't have a cache // entry. void @@ -1462,9 +1462,9 @@ ranger_cache::range_from_dom (vrange &r, tree name, basic_block start_bb, // incoming edges. If the first incoming edge to this block does // generate a range, calculate the ranges if all incoming edges // are also dominated by the dominator. (Avoids backedges which - // will break the rule of moving only upward in the domniator tree). + // will break the rule of moving only upward in the dominator tree). // If the first pred does not generate a range, then we will be - // using the dominator range anyway, so thats all the check needed. + // using the dominator range anyway, so that's all the check needed. if (EDGE_COUNT (prev_bb->preds) > 1 && m_gori.has_edge_range_p (name, EDGE_PRED (prev_bb, 0)->src)) { @@ -1502,14 +1502,14 @@ ranger_cache::range_from_dom (vrange &r, tree name, basic_block start_bb, fprintf (dump_file, " at function top\n"); } - // Now process any blocks wit incoming edges that nay have adjustemnts. + // Now process any blocks wit incoming edges that nay have adjustments. while (m_workback.length () > start_limit) { Value_Range er (TREE_TYPE (name)); prev_bb = m_workback.pop (); if (!single_pred_p (prev_bb)) { - // Non single pred means we need to cache a vsalue in the dominator + // Non single pred means we need to cache a value in the dominator // so we can cheaply calculate incoming edges to this block, and // then store the resulting value. If processing mode is not // RFD_FILL, then the cache cant be stored to, so don't try. @@ -1564,7 +1564,7 @@ ranger_cache::register_inferred_value (const vrange &ir, tree name, if (r.intersect (ir)) { m_on_entry.set_bb_range (name, bb, r); - // If this range was invariant before, remove invariance. + // If this range was invariant before, remove invariant. if (!m_gori.has_edge_range_p (name)) m_gori.set_range_invariant (name, false); } |