[llvm] [LV] Add support for widening loads/stores to a VF multiple (PR #217670)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 6 23:04:42 PDT 2026
================
@@ -299,6 +358,13 @@ void UnrollState::unrollRecipeByUF(VPRecipeBase &R) {
return;
}
}
+
+ if (auto *WidenMem = dyn_cast<VPWidenMemoryRecipe>(&R);
+ WidenMem && WidenMem->getVFMultiple() > 1) {
+ unrollMemOpWithVFMultiple(R, WidenMem->getVFMultiple());
+ return;
+ }
+
----------------
fhahn wrote:
nit: we generally avoid assignments in if()
```suggestion
if (auto *WidenMem = dyn_cast<VPWidenMemoryRecipe>(&R)) {
if (WidenMem && WidenMem->getVFMultiple() > 1) {
unrollMemOpWithVFMultiple(R, WidenMem->getVFMultiple());
return;
}
}
```
https://github.com/llvm/llvm-project/pull/217670
More information about the llvm-commits
mailing list