[llvm] [LoopVectorize] Add metadata to distinguish vectorized loop body from scalar remainder (PR #190258)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 09:33:17 PDT 2026


================
@@ -25,13 +25,25 @@ static void warnAboutLeftoverTransformations(Loop *L,
                                              OptimizationRemarkEmitter *ORE) {
   if (hasUnrollTransformation(L) == TM_ForcedByUser) {
     LLVM_DEBUG(dbgs() << "Leftover unroll transformation\n");
+    bool IsVectorBody =
+        getBooleanLoopAttribute(L, "llvm.loop.vectorize.vector_body");
----------------
arsenm wrote:

Why do these mix . and _ as the word separator 

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


More information about the llvm-commits mailing list