[llvm] [VPlan] Explicitly replicate VPInstructions by VF. (PR #155102)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 12 01:16:09 PDT 2025
================
@@ -1244,6 +1223,9 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
case VPInstruction::Broadcast:
case VPInstruction::ReductionStartVector:
return true;
+ case VPInstruction::BuildStructVector:
+ case VPInstruction::BuildVector:
+ return getNumOperands() > 1;
----------------
ayalz wrote:
and this determines if `onlyFirstLaneUsed` or not? Worth a comment.
https://github.com/llvm/llvm-project/pull/155102
More information about the llvm-commits
mailing list