[llvm] [VPlan] Eliminate some vec temps with ArrayRef (NFC) (PR #207432)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 01:41:41 PDT 2026


================
@@ -3804,9 +3803,8 @@ InstructionCost VPReplicateRecipe::computeCost(ElementCount VF,
     auto *CalledFn =
         cast<Function>(getOperand(getNumOperands() - 1)->getLiveInIRValue());
     Type *ResultTy = this->getScalarType();
-    SmallVector<const VPValue *> ArgOps(drop_end(operands()));
-    return computeCallCost(CalledFn, ResultTy, ArgOps, isSingleScalar(), VF,
-                           Ctx);
+    return computeCallCost(CalledFn, ResultTy, operandsWithoutMask(),
----------------
artagnon wrote:

Oops, thanks for noticing this major thinko!

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


More information about the llvm-commits mailing list