[llvm] [VPlan] Handle regions with live-outs and scalar VF when replicating. (PR #186252)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 29 05:15:32 PDT 2026
================
@@ -800,7 +810,8 @@ static void replicateReplicateRegionsByVF(VPlan &Plan, ElementCount VF,
vp_depth_first_shallow(Plan.getVectorLoopRegion()->getEntry()))) {
// Skip regions with live-outs as packing scalar results back into vectors
// is not yet implemented.
- if (Region->isReplicator() && Region->getExitingBasicBlock()->empty())
+ if (Region->isReplicator() &&
+ (!VF.isScalar() && Region->getExitingBasicBlock()->empty()))
----------------
fhahn wrote:
ah yes, fixed after moving stuff around, thanks
https://github.com/llvm/llvm-project/pull/186252
More information about the llvm-commits
mailing list