https://gcc.gnu.org/g:61cc4c2a23bf6ff74a334b364eeb71f95765b2ec

commit r16-7982-g61cc4c2a23bf6ff74a334b364eeb71f95765b2ec
Author: Richard Biener <[email protected]>
Date:   Tue Mar 10 13:27:38 2026 +0100

    Add and fix comments in tree-vect-loop.cc
    
    The following fixes a comment and adds a function level comment.
    Noticed when reviewing this code.
    
            * tree-vect-loop.cc (vect_get_datarefs_in_loop): Add function
            level comment.
            (vect_analyze_loop_2): Fix comment.

Diff:
---
 gcc/tree-vect-loop.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index 7bcecc42f698..890ea3ebb481 100644
--- a/gcc/tree-vect-loop.cc
+++ b/gcc/tree-vect-loop.cc
@@ -1975,6 +1975,9 @@ vect_analyze_loop_costing (loop_vec_info loop_vinfo,
   return 1;
 }
 
+/* Gather data references in LOOP with body BBS and store them into
+   *DATAREFS.  */
+
 static opt_result
 vect_get_datarefs_in_loop (loop_p loop, basic_block *bbs,
                           vec<data_reference_p> *datarefs)
@@ -2172,7 +2175,7 @@ vect_analyze_loop_2 (loop_vec_info loop_vinfo, int 
masked_p, bool &fatal,
 
   loop_p loop = LOOP_VINFO_LOOP (loop_vinfo);
 
-  /* Gather the data references and count stmts in the loop.  */
+  /* Gather the data references.  */
   if (!LOOP_VINFO_DATAREFS (loop_vinfo).exists ())
     {
       opt_result res

Reply via email to