Drop code after unreachable. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2015-10-26 09:55:45 +00:00
parent 31a3f5f4a1
commit 6f975c928c
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.