diff options
author | Andrew Carlotti <andrew.carlotti@arm.com> | 2022-08-12 14:36:22 +0100 |
---|---|---|
committer | Andrew Carlotti <andrew.carlotti@arm.com> | 2022-08-12 14:36:22 +0100 |
commit | 88ee126ee0401e293888e7d1b9219ad35eb130b5 (patch) | |
tree | 55da6bb92d232d6ea20f7319bab618b173e22251 | |
parent | 83e9bc792ef10d08bb952a961e8c6f567521d28d (diff) | |
download | gcc-88ee126ee0401e293888e7d1b9219ad35eb130b5.zip gcc-88ee126ee0401e293888e7d1b9219ad35eb130b5.tar.gz gcc-88ee126ee0401e293888e7d1b9219ad35eb130b5.tar.bz2 |
Improve comment for tree_niter_desc.{control,bound,cmp}
Fix typos and explain ERROR_MARK usage.
gcc/ChangeLog:
* tree-ssa-loop.h: Improve comment
-rw-r--r-- | gcc/tree-ssa-loop.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/tree-ssa-loop.h b/gcc/tree-ssa-loop.h index 415f461..6c70f79 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; |