[llvm-branch-commits] [llvm] [LoopVectorize] Support vectorization of compressing patterns (PR #214491)

Benjamin Maxwell via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 10 06:53:20 PDT 2026


================
@@ -470,6 +474,29 @@ int LoopVectorizationLegality::isConsecutivePtr(Type *AccessTy,
   return 0;
 }
 
+bool LoopVectorizationLegality::isCompressedPtr(Type *AccessTy, Value *Ptr,
+                                                BasicBlock *BB) const {
+  if (!EnableMonotonicPatterns)
+    return false;
----------------
MacDue wrote:

I've reworked things so this is now checked within `canVectorizeInstr()`.

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


More information about the llvm-branch-commits mailing list