From bd4a3617390597e8fcba39427d1b3f2401989aec Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Fri, 8 Sep 2017 14:32:20 +0000 Subject: [SLP] Fix the warning about paths not returning the value, NFC. llvm-svn: 312793 --- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp') diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 53b1d871fa3..021936721d7 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -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. -- cgit v1.2.3