[llvm] [VPlan] Add VPInstruction to unpack vector values to scalars. (PR #155670)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 20 14:48:49 PDT 2025
================
@@ -548,7 +563,8 @@ void VPlanTransforms::replicateByVF(VPlan &Plan, ElementCount VF) {
(isa<VPReplicateRecipe>(&R) &&
cast<VPReplicateRecipe>(&R)->isSingleScalar()) ||
(isa<VPInstruction>(&R) &&
- !cast<VPInstruction>(&R)->doesGeneratePerAllLanes()))
+ !cast<VPInstruction>(&R)->doesGeneratePerAllLanes() &&
+ cast<VPInstruction>(&R)->getOpcode() != VPInstruction::UnpackVector))
----------------
artagnon wrote:
dyn_cast?
https://github.com/llvm/llvm-project/pull/155670
More information about the llvm-commits
mailing list