]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add and fix comments in tree-vect-loop.cc
authorRichard Biener <rguenther@suse.de>
Tue, 10 Mar 2026 12:27:38 +0000 (13:27 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 10 Mar 2026 13:43:34 +0000 (14:43 +0100)
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.

gcc/tree-vect-loop.cc

index 7bcecc42f698ab2fc23443599ef39ef066089b2b..890ea3ebb481a31ee5c53a139bf8253057e05919 100644 (file)
@@ -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