Support v8f32 to v8i8/vi816 conversion through custom lowering
[oota-llvm.git] / lib / Target / NVPTX / VectorElementize.cpp
index a0152bf3988a4cd952d5333b303829c00bcbb1d9..8043e2de09728558807c8247d80aad59072b930c 100644 (file)
@@ -731,9 +731,7 @@ unsigned VectorElementize::getScalarVersion(unsigned opcode) {
   if (opcode == NVPTX::IMPLICIT_DEF)
     return opcode;
   switch(opcode) {
-  default:
-    assert(0 && "Scalar version not set, fix NVPTXVector.td");
-    return 0;
+  default: llvm_unreachable("Scalar version not set, fix NVPTXVector.td");
   case TargetOpcode::COPY: return TargetOpcode::COPY;
   case NVPTX::AddCCCV2I32: return NVPTX::ADDCCCi32rr;
   case NVPTX::AddCCCV4I32: return NVPTX::ADDCCCi32rr;