[llvm] [LV] Teach LoopVectorizationLegality about struct vector calls (PR #119221)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 06:49:10 PST 2024


================
@@ -10258,6 +10258,15 @@ bool LoopVectorizePass::processLoop(Loop *L) {
     }
   }
 
+  if (LVL.hasStructVectorCall()) {
+    constexpr StringLiteral FailureMessage(
+        "Auto-vectorization of calls that return struct types is not yet "
+        "supported");
+    reportVectorizationFailure(FailureMessage, FailureMessage,
----------------
david-arm wrote:

nit: We now have a variant of `reportVectorizationFailure` that takes a single `FailureMessage` argument if it's duplicated. Could you use that here as well please?

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


More information about the llvm-commits mailing list