aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-03-20 10:35:56 +0100
committerJakub Jelinek <jakub@redhat.com>2024-03-20 10:35:56 +0100
commit0ba773df160ab1552d76eb51248d0b4d4ca86fae (patch)
tree9931b96dc53e87b336f181743787d11f86ee9a66 /gcc
parent5e64228fe1f7ec536da314246eec968aea0d704d (diff)
downloadgcc-0ba773df160ab1552d76eb51248d0b4d4ca86fae.zip
gcc-0ba773df160ab1552d76eb51248d0b4d4ca86fae.tar.gz
gcc-0ba773df160ab1552d76eb51248d0b4d4ca86fae.tar.bz2
tree-ssa-loop-ch: Fix comment typos
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-ssa-loop-ch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-ch.cc b/gcc/tree-ssa-loop-ch.cc
index 6c6e562..1f0033b 100644
--- a/gcc/tree-ssa-loop-ch.cc
+++ b/gcc/tree-ssa-loop-ch.cc
@@ -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