[llvm] bd5fa63 - [VPlan] Remove duplicated computeCost call (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 2 14:01:13 PST 2025


Author: Florian Hahn
Date: 2025-12-02T21:59:40Z
New Revision: bd5fa633355638f4e9b176ca82007ff755bb51e9

URL: https://github.com/llvm/llvm-project/commit/bd5fa633355638f4e9b176ca82007ff755bb51e9
DIFF: https://github.com/llvm/llvm-project/commit/bd5fa633355638f4e9b176ca82007ff755bb51e9.diff

LOG: [VPlan] Remove duplicated computeCost call (NFC).

Remove a redundant duplicated computeCost call. NFC, just skipping an
unneeded call.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index 6491a2ce6813b..422204ff3f292 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -280,7 +280,6 @@ InstructionCost VPRecipeBase::cost(ElementCount VF, VPCostContext &Ctx) {
   if (UI && Ctx.skipCostComputation(UI, VF.isVector())) {
     RecipeCost = 0;
   } else {
-    RecipeCost = computeCost(VF, Ctx);
     RecipeCost = computeCost(VF, Ctx);
     if (ForceTargetInstructionCost.getNumOccurrences() > 0 &&
         RecipeCost.isValid()) {


        


More information about the llvm-commits mailing list