public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2033] Improve comment for tree_niter_desc.{control, bound, cmp}
@ 2022-08-12 13:41 Andrew Carlotti
0 siblings, 0 replies; only message in thread
From: Andrew Carlotti @ 2022-08-12 13:41 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:88ee126ee0401e293888e7d1b9219ad35eb130b5
commit r13-2033-g88ee126ee0401e293888e7d1b9219ad35eb130b5
Author: Andrew Carlotti <andrew.carlotti@arm.com>
Date: Fri Aug 12 14:36:22 2022 +0100
Improve comment for tree_niter_desc.{control,bound,cmp}
Fix typos and explain ERROR_MARK usage.
gcc/ChangeLog:
* tree-ssa-loop.h: Improve comment
Diff:
---
gcc/tree-ssa-loop.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gcc/tree-ssa-loop.h b/gcc/tree-ssa-loop.h
index 415f461c37e..6c70f795d17 100644
--- a/gcc/tree-ssa-loop.h
+++ b/gcc/tree-ssa-loop.h
@@ -54,11 +54,11 @@ public:
widest_int max; /* The upper bound on the number of iterations of
the loop. */
- /* The simplified shape of the exit condition. The loop exits if
- CONTROL CMP BOUND is false, where CMP is one of NE_EXPR,
- LT_EXPR, or GT_EXPR, and step of CONTROL is positive if CMP is
- LE_EXPR and negative if CMP is GE_EXPR. This information is used
- by loop unrolling. */
+ /* The simplified shape of the exit condition. This information is used by
+ loop unrolling. If CMP is ERROR_MARK, then the loop cannot be unrolled.
+ Otherwise, the loop exits if CONTROL CMP BOUND is false, where CMP is one
+ of NE_EXPR, LT_EXPR, or GT_EXPR, and CONTROL.STEP is positive if CMP is
+ LT_EXPR and negative if CMP is GT_EXPR. */
affine_iv control;
tree bound;
enum tree_code cmp;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-12 13:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12 13:41 [gcc r13-2033] Improve comment for tree_niter_desc.{control, bound, cmp} Andrew Carlotti
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).