Skip to content

Commit bd5fa63

Browse files
committed
[VPlan] Remove duplicated computeCost call (NFC).
Remove a redundant duplicated computeCost call. NFC, just skipping an unneeded call.
1 parent 4006df9 commit bd5fa63

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ InstructionCost VPRecipeBase::cost(ElementCount VF, VPCostContext &Ctx) {
280280
if (UI && Ctx.skipCostComputation(UI, VF.isVector())) {
281281
RecipeCost = 0;
282282
} else {
283-
RecipeCost = computeCost(VF, Ctx);
284283
RecipeCost = computeCost(VF, Ctx);
285284
if (ForceTargetInstructionCost.getNumOccurrences() > 0 &&
286285
RecipeCost.isValid()) {

0 commit comments

Comments
 (0)