diff mbox series

[committed] tree-ssa-loop-ch: Fix comment typos

Message ID Zfqub6jIDm+9t/Hz@tucnak
State New
Headers show
Series [committed] tree-ssa-loop-ch: Fix comment typos | expand

Commit Message

Jakub Jelinek March 20, 2024, 9:37 a.m. UTC
Hi!

When looking at PR109596, I've noticed some comment typos.

Bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk as
obvious.

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.


	Jakub
diff mbox series

Patch

--- gcc/tree-ssa-loop-ch.cc.jj	2024-01-12 10:07:58.380849033 +0100
+++ gcc/tree-ssa-loop-ch.cc	2024-03-20 00:51:18.570544185 +0100
@@ -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