Hi,
This is an obvious change to dump message in vect_analyze_loop_2.  Apparently, 
the wrong message is copies/pasted from another place, the code has nothing to 
do with function calls or data references.  We should report that loop cannot 
be vectorized because of malformed loop nest.
Build successfully.  Is it OK?

Thanks,
bin

2016-03-16  Bin Cheng  <bin.ch...@arm.com>

        * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
        reporting malformed loop nest.
Index: gcc/tree-vect-loop.c
===================================================================
--- gcc/tree-vect-loop.c        (revision 234057)
+++ gcc/tree-vect-loop.c        (working copy)
@@ -1772,8 +1772,9 @@ vect_analyze_loop_2 (loop_vec_info loop_vinfo, boo
     {
       if (dump_enabled_p ())
        dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
-                        "not vectorized: loop contains function calls"
-                        " or data references that cannot be analyzed\n");
+                        "not vectorized: loop nest containing two "
+                        "or more consecutive inner loops cannot be "
+                        "vectorized\n");
       return false;
     }
 

Reply via email to