]> granicus.if.org Git - llvm/commitdiff
Follow up of rL367592, fix the build
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Thu, 1 Aug 2019 18:54:29 +0000 (18:54 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Thu, 1 Aug 2019 18:54:29 +0000 (18:54 +0000)
Some buildbots complained about:
error: default label in switch which covers all enumeration values

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367603 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index 369b29a1e9b89e16f58c52014409fd1f4e718412..5a0ce75add46f9379cedbf548886f35243661477 100644 (file)
@@ -4767,8 +4767,6 @@ Optional<unsigned> LoopVectorizationCostModel::computeMaxVF() {
   }
 
   switch (ScalarEpilogueStatus) {
-  default:
-    return None;
   case CM_ScalarEpilogueAllowed:
     return computeFeasibleMaxVF(TC);
   case CM_ScalarEpilogueNotNeededPredicatePragma: