diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-09-08 14:32:20 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-09-08 14:32:20 +0000 |
commit | bd4a3617390597e8fcba39427d1b3f2401989aec (patch) | |
tree | bb36a2a0933c3401c04ff55ee64146ccc07c0d15 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | 309b7f5d7767a7d83a83f8c7da0cb70f44bf4d86 (diff) | |
download | bcm5719-llvm-bd4a3617390597e8fcba39427d1b3f2401989aec.tar.gz bcm5719-llvm-bd4a3617390597e8fcba39427d1b3f2401989aec.zip |
[SLP] Fix the warning about paths not returning the value, NFC.
llvm-svn: 312793
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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. |