From 5cdf91519145b87ded4fa118bb24314f43f9d642 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sun, 1 Nov 2015 00:09:16 +0000 Subject: [PATCH] Simplify a check. NFC. llvm-svn: 251757 --- llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp index 28cd2c12a32c..f992d7895fbb 100644 --- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/llvm/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) {