[llvm] [LV] Compute register usage for interleaving on VPlan. (PR #126437)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 19 13:33:30 PDT 2025
================
@@ -4878,8 +4879,232 @@ void LoopVectorizationCostModel::collectElementTypesForWidening() {
}
}
+/// Estimate the register usage for \p Plan and vectorization factors in \p VFs.
+/// Returns the register usage for each VF in \p VFs.
+static SmallVector<LoopVectorizationCostModel::RegisterUsage, 8>
+calculateRegisterUsage(VPlan &Plan, ArrayRef<ElementCount> VFs,
----------------
fhahn wrote:
Yep, there's one more use remaining, once that has been migrated (which is what IIUC @SamTebbs33 is planning to do?) it can be removed,.
https://github.com/llvm/llvm-project/pull/126437
More information about the llvm-commits
mailing list