[llvm] [VPlan] Implement interleaving as VPlan-to-VPlan transform. (PR #95842)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 15:24:30 PDT 2024


================
@@ -1397,6 +1400,9 @@ class VPInstruction : public VPRecipeWithIRFlags {
   /// Returns true if this VPInstruction's operands are single scalars and the
   /// result is also a single scalar.
   bool isSingleScalar() const;
+
+  /// Return the interleave count from VPInstruction's last operand.
----------------
ayalz wrote:

If interleaving took place, otherwise returns 1 indicating interleaving did not take place?
Perhaps better to use the term `unroll factor`, as in UF, to avoid confusion with interleave groups?

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


More information about the llvm-commits mailing list