[llvm] r312793 - [SLP] Fix the warning about paths not returning the value, NFC.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 8 07:32:20 PDT 2017
Author: abataev
Date: Fri Sep 8 07:32:20 2017
New Revision: 312793
URL: http://llvm.org/viewvc/llvm-project?rev=312793&view=rev
Log:
[SLP] Fix the warning about paths not returning the value, NFC.
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=312793&r1=312792&r2=312793&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Fri Sep 8 07:32:20 2017
@@ -4711,8 +4711,9 @@ class HorizontalReduction {
case RK_UMax:
return 3;
case RK_None:
- llvm_unreachable("Reduction kind is not set");
+ break;
}
+ llvm_unreachable("Reduction kind is not set");
}
/// Expected number of uses for reduction operations/reduced values.
@@ -4728,8 +4729,9 @@ class HorizontalReduction {
case RK_UMax:
return 2;
case RK_None:
- llvm_unreachable("Reduction kind is not set");
+ break;
}
+ llvm_unreachable("Reduction kind is not set");
}
/// Checks if instruction is associative and can be vectorized.
More information about the llvm-commits
mailing list