Home
last modified time | relevance | path

Searched refs:isAllOnesValue (Results 1 – 25 of 36) sorted by relevance

12

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp198 return C1I->isOne() || C1I->isAllOnesValue() || in isSelect01()
199 C2I->isOne() || C2I->isAllOnesValue(); in isSelect01()
450 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) { in visitSelectInstWithICmp()
462 if (C2->isAllOnesValue()) in visitSelectInstWithICmp()
680 if (FalseValC->isZero() && TrueValC->isAllOnesValue()) in visitSelectInst()
690 if (TrueValC->isZero() && FalseValC->isAllOnesValue()) { in visitSelectInst()
DInstCombineAndOrXor.cpp767 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) { in FoldAndOfICmps()
1500 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) { in FoldOrOfICmps()
1742 if (!Xor.isAllOnesValue()) return 0; in FoldOrWithConstants()
2146 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue()) in visitXor()
2157 if (RHS->isAllOnesValue()) { in visitXor()
DInstCombineSimplifyDemanded.cpp689 if (Rem->isAllOnesValue()) in SimplifyDemandedUseBits()
855 if (DemandedElts.isAllOnesValue()) in SimplifyDemandedVectorElts()
DInstCombineCalls.cpp349 if (Power->isAllOnesValue()) in visitCallInst()
789 if (SizeCI->isAllOnesValue()) in isFoldable()
DInstCombineCompares.cpp123 return RHS->isAllOnesValue(); in isSignBitCheck()
126 return RHS->isAllOnesValue(); in isSignBitCheck()
762 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
1023 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
DInstCombineAddSub.cpp202 if ((LHSKnownZero|RHSKnownZero).isAllOnesValue()) in visitAdd()
DInstCombineMulDivRem.cpp516 if (RHS->isAllOnesValue()) in visitSDiv()
DInstCombineCasts.cpp513 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) { in transformZExtICmp()
897 (Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) { in transformSExtICmp()
/external/llvm/include/llvm/
DConstants.h173 bool isAllOnesValue() const { in isAllOnesValue() function
174 return Val.isAllOnesValue(); in isAllOnesValue()
483 bool isAllOnesValue() const;
/external/clang/lib/StaticAnalyzer/Core/
DSimpleSValBuilder.cpp245 else if (RHS.isAllOnesValue()) in MakeSymIntVal()
252 else if (RHS.isAllOnesValue()) { in MakeSymIntVal()
465 if (lhsValue.isAllOnesValue() && lhsValue.isSigned()) in evalBinOpNN()
/external/llvm/include/llvm/Support/
DPatternMatch.h186 bool isValue(const APInt &C) { return C.isAllOnesValue(); } in isValue()
599 return CI->isAllOnesValue() && L.match(LHS); in matchIfNot()
601 return CV->isAllOnesValue() && L.match(LHS); in matchIfNot()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp914 if (CstVal->isAllOnesValue()) // X & -1 -> X in OptimizeExpression()
927 if (CstVal->isAllOnesValue()) // X | -1 -> -1 in OptimizeExpression()
1072 cast<ConstantInt>(Ops.back().Op)->isAllOnesValue()) { in ReassociateExpression()
DCodeGenPrepare.cpp501 return SizeCI->isAllOnesValue(); in isFoldable()
DLoopStrengthReduce.cpp269 if (Mul->getOperand(0)->isAllOnesValue()) { in DoInitialMatch()
441 if (RA.isAllOnesValue()) in getExactSDiv()
1768 if (C->isOne() || C->isAllOnesValue()) in OptimizeLoopTermCond()
/external/llvm/lib/Analysis/
DLint.cpp379 !cast<ConstantInt>(UnderlyingObject)->isAllOnesValue(), in visitMemoryReference()
477 return KnownZero.isAllOnesValue(); in isZero()
DScalarEvolution.cpp271 bool SCEV::isAllOnesValue() const { in isAllOnesValue() function in SCEV
273 return SC->getValue()->isAllOnesValue(); in isAllOnesValue()
1867 } else if (Ops[0]->isAllOnesValue()) { in getMulExpr()
3533 if (CI->isAllOnesValue()) in createSCEV()
3591 if (CI->isAllOnesValue()) in createSCEV()
5036 if (StepC->getValue()->equalsInt(1) || StepC->getValue()->isAllOnesValue()) in HowFarToZero()
DScalarEvolutionExpander.cpp787 } else if (Op->isAllOnesValue()) { in visitMulExpr()
/external/llvm/lib/VMCore/
DConstantFold.cpp47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
228 if (RHSC->isAllOnesValue()) in ExtractConstantBytes()
702 if (CondV->isAllOnesValue()) return V1; in ConstantFoldSelectInstruction()
1098 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1136 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1189 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
1197 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
DInstruction.cpp371 return Op && !Op->isNullValue() && !Op->isAllOnesValue(); in isSafeToSpeculativelyExecute()
DConstants.cpp1078 bool ConstantVector::isAllOnesValue() const { in isAllOnesValue() function in ConstantVector
1082 if (!CI || !CI->isAllOnesValue()) return false; in isAllOnesValue()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h119 bool isAllOnesValue() const;
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp1591 if (N0C && N0C->isAllOnesValue()) in visitSUB()
1678 if (N1C && N1C->isAllOnesValue()) in visitMUL()
1766 if (N1C && N1C->isAllOnesValue()) in visitSDIV()
2285 if (N1C && N1C->isAllOnesValue()) in visitAND()
2334 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && Op1 == ISD::SETEQ) { in visitAND()
2341 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && Op1 == ISD::SETGT) { in visitAND()
2762 if (N1C && N1C->isAllOnesValue()) in visitOR()
2809 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && in visitOR()
3131 if (N1C && N1C->isAllOnesValue() && in visitXOR()
3386 if (N0C && N0C->isAllOnesValue()) in visitSRA()
[all …]
/external/llvm/lib/Support/
DConstantRange.cpp630 if (umin.isAllOnesValue()) in binaryAnd()
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1124 bool isAllOnesValue() const { return Value->isAllOnesValue(); }
/external/llvm/include/llvm/ADT/
DAPInt.h315 bool isAllOnesValue() const { in isAllOnesValue() function

12