Simplify a check. NFC.

llvm-svn: 251757
This commit is contained in:
Davide Italiano 2015-11-01 00:09:16 +00:00
parent 337d4786e1
commit 5cdf915191
1 changed files with 2 additions and 2 deletions

View File

@ -1488,8 +1488,8 @@ void insertSinCosCall(IRBuilder<> &B, Function *OrigCallee, Value *Arg,
static bool checkIntUnaryReturnAndParam(Function *Callee) {
FunctionType *FT = Callee->getFunctionType();
return !(FT->getNumParams() != 1 || !FT->getReturnType()->isIntegerTy(32) ||
!FT->getParamType(0)->isIntegerTy());
return FT->getNumParams() == 1 && FT->getReturnType()->isIntegerTy(32) &&
FT->getParamType(0)->isIntegerTy();
}
Value *LibCallSimplifier::optimizeFFS(CallInst *CI, IRBuilder<> &B) {