[llvm] [LoopVectorize] LLVM fails to vectorise loops with multi-bool varables (PR #89226)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 02:49:55 PDT 2024


================
@@ -1045,6 +1060,23 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {
     }
   }
 
+  // Make sure that all compare instruction users are recurrent if in loop's BB.
+  if (MultiCmpsRed.size() > 0) {
----------------
sdesmalen-arm wrote:

Why do we need similar loops/checks in both LoopVectorizationLegality.cpp and IVDecriptors.cpp?

https://github.com/llvm/llvm-project/pull/89226


More information about the llvm-commits mailing list