[llvm] [VPlan] Implement interleaving as VPlan-to-VPlan transform. (PR #95842)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 19 04:53:52 PDT 2024
================
@@ -1690,6 +1704,13 @@ void VPScalarIVStepsRecipe::execute(VPTransformState &State) {
}
}
+unsigned VPScalarIVStepsRecipe::getUnrollPartOperand() const {
+ return getNumOperands() == 2
+ ? 0
+ : cast<ConstantInt>(getOperand(2)->getLiveInIRValue())
+ ->getZExtValue();
+}
+
----------------
fhahn wrote:
I left it as is as per discussion above about introducing the separate getUnrollPartOperand that are only used by getUnrollPart(), happy to apply if preferred
https://github.com/llvm/llvm-project/pull/95842
More information about the llvm-commits
mailing list