[gcc r14-9568] tree-ssa-loop-ch: Fix comment typos
Jakub Jelinek
jakub@gcc.gnu.org
Wed Mar 20 09:37:06 GMT 2024
https://gcc.gnu.org/g:0ba773df160ab1552d76eb51248d0b4d4ca86fae
commit r14-9568-g0ba773df160ab1552d76eb51248d0b4d4ca86fae
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Mar 20 10:35:56 2024 +0100
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.
Diff:
---
gcc/tree-ssa-loop-ch.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/tree-ssa-loop-ch.cc b/gcc/tree-ssa-loop-ch.cc
index 6c6e562d5a0..1f0033be4c4 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
More information about the Gcc-cvs
mailing list