[llvm] [VPlan] Mark VPWidenCallRecipe as a VPRecipeWithIRFlags (PR #135373)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 11 07:17:49 PDT 2025


https://github.com/lukel97 created https://github.com/llvm/llvm-project/pull/135373

I noticed VPWidenCallRecipe was missing here, it looks like it should be handled in VPRecipeWithIRFlags::classof


>From 18a1f80c44b30f4d36e84395c0f9e7154d8ba21a Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Fri, 11 Apr 2025 15:15:53 +0100
Subject: [PATCH] [VPlan] Mark VPWidenCallRecipe as a VPRecipeWithIRFlags

I noticed VPWidenCallRecipe was missing here, it looks like it should be handled in VPRecipeWithIRFlags::classof
---
 llvm/lib/Transforms/Vectorize/VPlan.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index ce0fa9a87bb44..54d8f2e7449b0 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -710,6 +710,7 @@ class VPRecipeWithIRFlags : public VPSingleDefRecipe {
     return R->getVPDefID() == VPRecipeBase::VPInstructionSC ||
            R->getVPDefID() == VPRecipeBase::VPWidenSC ||
            R->getVPDefID() == VPRecipeBase::VPWidenGEPSC ||
+           R->getVPDefID() == VPRecipeBase::VPWidenCallSC ||
            R->getVPDefID() == VPRecipeBase::VPWidenCastSC ||
            R->getVPDefID() == VPRecipeBase::VPWidenIntrinsicSC ||
            R->getVPDefID() == VPRecipeBase::VPReductionSC ||



More information about the llvm-commits mailing list