[llvm] 651c520 - VPlanRecipes.cpp - fix "'llvm::VPExpressionRecipe::computeCost': not all control paths return a value" MSVC warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 01:59:11 PDT 2025
Author: Simon Pilgrim
Date: 2025-07-02T09:59:01+01:00
New Revision: 651c5208f8597f1f80349f6208e69bf9ea1c2862
URL: https://github.com/llvm/llvm-project/commit/651c5208f8597f1f80349f6208e69bf9ea1c2862
DIFF: https://github.com/llvm/llvm-project/commit/651c5208f8597f1f80349f6208e69bf9ea1c2862.diff
LOG: VPlanRecipes.cpp - fix "'llvm::VPExpressionRecipe::computeCost': not all control paths return a value" MSVC warning. NFC.
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 f64bd2a0cb6a2..0202fa0fc0250 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -2656,6 +2656,7 @@ InstructionCost VPExpressionRecipe::computeCost(ElementCount VF,
Instruction::ZExt,
RedTy, SrcVecTy, Ctx.CostKind);
}
+ llvm_unreachable("Unknown VPExpressionRecipe::ExpressionTypes enum");
}
bool VPExpressionRecipe::mayReadOrWriteMemory() const {
More information about the llvm-commits
mailing list