]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-ssa-loop-ch: Fix comment typos
authorJakub Jelinek <jakub@redhat.com>
Wed, 20 Mar 2024 09:35:56 +0000 (10:35 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 20 Mar 2024 09:35:56 +0000 (10:35 +0100)
When looking at PR109596, I've noticed some comment typos.

2024-03-20  Jakub Jelinek  <jakub@redhat.com>

* tree-ssa-loop-ch.cc (update_profile_after_ch): Fix comment typo:
probabbility -> probability.
(ch_base::copy_headers): Fix comment typo: itrations -> iterations.

gcc/tree-ssa-loop-ch.cc

index 6c6e562d5a0a95296bad61bcea564d816e06ef5a..1f0033be4c43f920665e7969e801b47feffe660a 100644 (file)
@@ -568,7 +568,7 @@ do_while_loop_p (class loop *loop)
               <body>
        // region start
      loop_header:
-              if (cond1)   <- we need to update probabbility here
+              if (cond1)   <- we need to update probability here
                 goto loop_exit;
               if (cond2)   <- and determine scaling factor here.
                               moreover cond2 is now always true
@@ -1049,7 +1049,7 @@ ch_base::copy_headers (function *fun)
          fprintf (dump_file, "\n");
        }
 
-      /* We possibly decreased number of itrations by 1.  */
+      /* We possibly decreased number of iterations by 1.  */
       auto_vec<edge> exits = get_loop_exit_edges (loop);
       bool precise = (nexits == (int) exits.length ());
       /* Check that loop may not terminate in other way than via