The following fixes a comment and adds a function level comment.
Noticed when reviewing this code.
Will push as obvious later.
* tree-vect-loop.cc (vect_get_datarefs_in_loop): Add function
level comment.
(vect_analyze_loop_2): Fix comment.
---
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 7bcecc42f69..890ea3ebb48 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
--
2.51.0