[llvm] [VPlan] Add VPInstruction to unpack vector values to scalars. (PR #155670)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 05:25:41 PDT 2025


================
@@ -1283,8 +1285,6 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
     return getNumOperands() > 1;
   case VPInstruction::PtrAdd:
     return Op == getOperand(0) || vputils::onlyFirstLaneUsed(this);
-  case VPInstruction::WidePtrAdd:
-    return Op == getOperand(0);
----------------
fhahn wrote:

Added a comment. It supports both vector and scalar base addresses.

https://github.com/llvm/llvm-project/pull/155670


More information about the llvm-commits mailing list