[SimplifyLibCalls] Make a function shorter. NFC.

llvm-svn: 252970
This commit is contained in:
Davide Italiano 2015-11-12 23:39:00 +00:00
parent 7a92c6ecbb
commit b883b01a8e
1 changed files with 2 additions and 10 deletions

View File

@ -53,16 +53,8 @@ static cl::opt<bool>
//===----------------------------------------------------------------------===//
static bool ignoreCallingConv(LibFunc::Func Func) {
switch (Func) {
case LibFunc::abs:
case LibFunc::labs:
case LibFunc::llabs:
case LibFunc::strlen:
return true;
default:
return false;
}
llvm_unreachable("All cases should be covered in the switch.");
return Func == LibFunc::abs || Func == LibFunc::labs ||
Func == LibFunc::llabs || Func == LibFunc::strlen;
}
/// isOnlyUsedInZeroEqualityComparison - Return true if it only matters that the