[llvm] [VPlan] Remove the duplicate code when inferring the scalar type of VPValue. NFC (PR #101313)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 02:41:59 PDT 2024


https://github.com/Mel-Chen created https://github.com/llvm/llvm-project/pull/101313

None

>From af1bc3c92772e3c0b6716faea136129f7b1dc175 Mon Sep 17 00:00:00 2001
From: Mel Chen <mel.chen at sifive.com>
Date: Wed, 31 Jul 2024 02:23:03 -0700
Subject: [PATCH] [VPlan] Remove the duplicate code when inferring the scalar
 type of VPValue. nfc

---
 llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
index 6d89ad9fee8ad..36d52b255232a 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
@@ -274,9 +274,6 @@ Type *VPTypeAnalysis::inferScalarType(const VPValue *V) {
               [](const VPScalarCastRecipe *R) { return R->getResultType(); })
           .Case<VPExpandSCEVRecipe>([](const VPExpandSCEVRecipe *R) {
             return R->getSCEV()->getType();
-          })
-          .Case<VPReductionRecipe>([this](const auto *R) {
-            return inferScalarType(R->getChainOp());
           });
 
   assert(ResultTy && "could not infer type for the given VPValue");



More information about the llvm-commits mailing list