[llvm] [LV][EVL] Attach a new metadata on EVL vectorized loops (PR #131000)
    Florian Hahn via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue May  6 10:09:21 PDT 2025
    
    
  
================
@@ -7991,6 +7991,26 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
 
       LoopVectorizeHints Hints(L, true, *ORE);
       Hints.setAlreadyVectorized();
+
+      // Check if it's EVL-vectorized and mark the corresponding metadata.
+      bool IsEVLVectorized =
+          llvm::any_of(*HeaderVPBB, [](const VPRecipeBase &Recipe) {
----------------
fhahn wrote:
just for future reference, `llvm::` should not be needed here
https://github.com/llvm/llvm-project/pull/131000
    
    
More information about the llvm-commits
mailing list