* [committed] tree-ssa-loop-ch: Fix comment typos
@ 2024-03-20 9:37 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2024-03-20 9:37 UTC (permalink / raw)
To: gcc-patches
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.
--- 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
Jakub
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-20 9:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-20 9:37 [committed] tree-ssa-loop-ch: Fix comment typos Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).