[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 17 04:04:22 PDT 2026


================
@@ -2903,6 +2920,38 @@ void LoopVectorizationCostModel::collectLoopUniforms(ElementCount VF) {
     AddToWorklistIfAllowed(IndUpdate);
   }
 
+  // Handle monotonic phis (similarly to induction vars).
+  for (const auto &MonotonicPHI : Legal->getMonotonicPHIs()) {
----------------
MacDue wrote:

I've now moved most of the user checking into the descriptor see (github.com/llvm/llvm-project/pull/214490), and removed the uniformity collection/costing from this patch.  

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


More information about the llvm-branch-commits mailing list