This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/68766] [6 regression] internal compiler error: in expand_LOOP_VECTORIZED, at internal-fn.c:1905


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68766

--- Comment #2 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
This patch helps:

diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c
index b721c56..c496c4b 100644
--- a/gcc/tree-vectorizer.c
+++ b/gcc/tree-vectorizer.c
@@ -536,7 +536,13 @@ vectorize_loops (void)
          continue;

         if (!dbg_cnt (vect_loop))
-         break;
+         {
+           /* We may miss some if-converted loops due to
+              debug counter.  Set any_ifcvt_loops to visit
+              them at finalization.  */
+           any_ifcvt_loops = true;
+           break;
+         }

        gimple *loop_vectorized_call = vect_loop_vectorized_call (loop);
        if (loop_vectorized_call)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]