From: Davide Italiano Date: Sun, 1 Nov 2015 00:09:16 +0000 (+0000) Subject: Simplify a check. NFC. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=4784e1362fb4f27bc902156ad01e426490c2d2c0 Simplify a check. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251757 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/SimplifyLibCalls.cpp b/lib/Transforms/Utils/SimplifyLibCalls.cpp index 28cd2c12a32..f992d7895fb 100644 --- a/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/lib/Transforms/Utils/SimplifyLibCalls.cpp @@ -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) {