diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp index 75d056026025a..54990c7c806c4 100644 --- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp +++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp @@ -1333,15 +1333,6 @@ InstructionCost VPWidenIntrinsicRecipe::computeCost(ElementCount VF, for (const auto &[Idx, Op] : enumerate(operands())) { auto *V = Op->getUnderlyingValue(); if (!V) { - // Push all the VP Intrinsic's ops into the Argments even if is nullptr. - // Some VP Intrinsic's cost will assert the number of parameters. - // Mainly appears in the following two scenarios: - // 1. EVL Op is nullptr - // 2. The Argmunt of the VP Intrinsic is also the VP Intrinsic - if (VPIntrinsic::isVPIntrinsic(VectorIntrinsicID)) { - Arguments.push_back(V); - continue; - } if (auto *UI = dyn_cast_or_null(getUnderlyingValue())) { Arguments.push_back(UI->getArgOperand(Idx)); continue;