[llvm] [VPlan] Expand VPWidenPointerInductionRecipe into separate recipes (PR #148274)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 03:14:18 PDT 2025


================
@@ -1083,6 +1090,8 @@ bool VPInstruction::onlyFirstLaneUsed(const VPValue *Op) const {
     return true;
   case VPInstruction::PtrAdd:
     return Op == getOperand(0) || vputils::onlyFirstLaneUsed(this);
+  case VPInstruction::WidePtrAdd:
+    return Op == getOperand(0);
----------------
Mel-Chen wrote:

Could I know what’s the reason for not using `Op == getOperand(0) || vputils::onlyFirstLaneUsed(this);`, like VPInstruction::PtrAdd did?

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


More information about the llvm-commits mailing list