Fix comment typos
authorJakub Jelinek <jakub@redhat.com>
Fri, 7 Oct 2022 07:08:46 +0000 (09:08 +0200)
committerJakub Jelinek <jakub@redhat.com>
Fri, 7 Oct 2022 07:08:46 +0000 (09:08 +0200)
When looking at tree-inline.cc I've noticed a comment typo and grepped
for similar typos elsewhere.

2022-10-07  Jakub Jelinek  <jakub@redhat.com>

* ipa-prop.h (ipa_constant_data): Fix comment typo.
* value-range.cc (irange::irange_contains_p): Likewise.
* value-relation.cc (dom_oracle::set_one_relation): Likewise.
* gimple-predicate-analysis.cc (predicate::simplify_4): Likewise.
* tree-inline.cc (remap_ssa_name): Likewise.

gcc/gimple-predicate-analysis.cc
gcc/ipa-prop.h
gcc/tree-inline.cc
gcc/value-range.cc
gcc/value-relation.cc

index bc9ed84..5013a44 100644 (file)
@@ -1369,7 +1369,7 @@ predicate::simplify_3 ()
 /* Implement rule 4 for the OR predicate PREDS:
 
    2) ((x AND y) != 0) OR (x != 0 AND y != 0) is equivalent to
-       (x != 0 ANd y != 0).   */
+       (x != 0 AND y != 0).   */
 
 bool
 predicate::simplify_4 ()
index 8811e0e..e54842d 100644 (file)
@@ -78,7 +78,7 @@ struct ipa_cst_ref_desc;
 /* Structure holding data required to describe a constant jump function.  */
 struct GTY(()) ipa_constant_data
 {
-  /* THe value of the constant.  */
+  /* The value of the constant.  */
   tree value;
   /* Pointer to the structure that describes the reference.  */
   struct ipa_cst_ref_desc GTY((skip)) *rdesc;
index 043e1d5..01d4700 100644 (file)
@@ -171,7 +171,7 @@ remap_ssa_name (tree name, copy_body_data *id)
   n = id->decl_map->get (name);
   if (n)
     {
-      /* WHen we perform edge redirection as part of CFG copy, IPA-SRA can
+      /* When we perform edge redirection as part of CFG copy, IPA-SRA can
         remove an unused LHS from a call statement.  Such LHS can however
         still appear in debug statements, but their value is lost in this
         function and we do not want to map them.  */
index 87239fa..727ca7d 100644 (file)
@@ -2508,7 +2508,7 @@ irange::irange_contains_p (const irange &r) const
       // Otherwise, check if this's pair occurs before R's.
       if (wi::lt_p (wi::to_wide (u), wi::to_wide (rl), sign))
        {
-         // THere's still at leats one pair of R left.
+         // There's still at leats one pair of R left.
          if (++i >= num_pairs ())
            return false;
          l = m_base[i * 2];
index e6f5ef4..1ee6da1 100644 (file)
@@ -955,7 +955,7 @@ dom_oracle::set_one_relation (basic_block bb, relation_kind k, tree op1,
          ptr->dump (dump_file);
        }
       // Check into whether we can simply replace the relation rather than
-      // intersecting it.  THis may help with some optimistic iterative
+      // intersecting it.  This may help with some optimistic iterative
       // updating algorithms.
       bool new_rel = ptr->intersect (vr);
       if (dump_file && (dump_flags & TDF_DETAILS))