Drop code after unreachable. No functionality change.

llvm-svn: 251278
This commit is contained in:
Benjamin Kramer 2015-10-26 09:55:45 +00:00
parent dc8b2d3d3a
commit 8604457f2e
2 changed files with 0 additions and 3 deletions

View File

@ -318,7 +318,6 @@ Value *GenericToNVVM::remapConstantExpr(Module *M, Function *F, ConstantExpr *C,
// CompareConstantExpr (fcmp)
llvm_unreachable("Address space conversion should have no effect "
"on float point CompareConstantExpr (fcmp)!");
return C;
case Instruction::ExtractElement:
// ExtractElementConstantExpr
return Builder.CreateExtractElement(NewOperands[0], NewOperands[1]);
@ -363,7 +362,6 @@ Value *GenericToNVVM::remapConstantExpr(Module *M, Function *F, ConstantExpr *C,
NewOperands[0], C->getType());
}
llvm_unreachable("GenericToNVVM encountered an unsupported ConstantExpr");
return C;
}
}

View File

@ -790,7 +790,6 @@ void PPCVSXSwapRemoval::handleSpecialSwappables(int EntryIdx) {
default:
llvm_unreachable("Unexpected special handling type");
break;
// For splats based on an index into a vector, add N/2 modulo N
// to the index, where N is the number of vector elements.