diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 369b29a1e9b8..5a0ce75add46 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -4767,8 +4767,6 @@ Optional LoopVectorizationCostModel::computeMaxVF() { } switch (ScalarEpilogueStatus) { - default: - return None; case CM_ScalarEpilogueAllowed: return computeFeasibleMaxVF(TC); case CM_ScalarEpilogueNotNeededPredicatePragma: