[llvm] [VPlan] Remove the duplicate code when inferring the scalar type of VPValue. NFC (PR #101313)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 31 02:42:30 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Mel Chen (Mel-Chen)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/101313.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp (-3)
``````````diff
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");
``````````
</details>
https://github.com/llvm/llvm-project/pull/101313
More information about the llvm-commits
mailing list