[llvm] dff0d29 - [VPlan] Check isa<VPRecipeValue> directly, remove unused variable (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 16 08:50:07 PDT 2026


Author: Florian Hahn
Date: 2026-03-16T15:45:24Z
New Revision: dff0d290e8104d51a1a7a7212ab316cc50f451da

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

LOG: [VPlan] Check isa<VPRecipeValue> directly, remove unused variable (NFC).

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
index 5adb786475176..2289b4083ef14 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
@@ -455,7 +455,7 @@ SmallVector<VPRegisterUsage, 8> llvm::calculateRegisterUsageForPlan(
 
       // Save the end location of each USE.
       for (VPValue *U : R.operands()) {
-        if (auto *DefR = U->getDefiningRecipe()) {
+        if (isa<VPRecipeValue>(U)) {
           // Overwrite previous end points.
           EndPoint[U] = Idx2Recipe.size();
           Ends.insert(U);


        


More information about the llvm-commits mailing list