Home
last modified time | relevance | path

Searched refs:isEquality (Results 1 – 21 of 21) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DCmpInstAnalysis.cpp94 (CmpInst::isSigned(p1) && ICmpInst::isEquality(p2)) || in PredicatesFoldable()
95 (CmpInst::isSigned(p2) && ICmpInst::isEquality(p1)); in PredicatesFoldable()
DSimplifyLibCalls.cpp65 if (IC->isEquality()) in isOnlyUsedInZeroEqualityComparison()
80 if (IC->isEquality() && IC->getOperand(1) == With) in isOnlyUsedInEqualityComparison()
DSimplifyCFG.cpp560 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL)) in isValueEqualityComparison()
4884 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) { in SimplifyUncondBranch()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp735 assert(ICI.isEquality() && "Cannot fold non-equality comparison."); in FoldAllocaCmp()
874 if (!ICI.isEquality() && DivIsSigned != ICI.isSigned()) in FoldICmpDivCst()
1028 if (!ICI.isEquality()) { in FoldICmpShrCst()
1107 assert(I.isEquality() && "Cannot fold icmp gt/lt"); in FoldICmpCstShrCst()
1171 assert(I.isEquality() && "Cannot fold icmp gt/lt"); in FoldICmpCstShlCst()
1228 if (ICI.isEquality() && LHSI->hasOneUse()) { in visitICmpInstWithInstAndIntCst()
1279 if (!ICI.isEquality() && XorCst->getValue().isSignBit()) { in visitICmpInstWithInstAndIntCst()
1289 if (!ICI.isEquality() && XorCst->isMaxValue(true)) { in visitICmpInstWithInstAndIntCst()
1326 if (ICI.isEquality() || in visitICmpInstWithInstAndIntCst()
1343 if (ICI.isEquality() && RHSV.getActiveBits() <= Ty->getBitWidth()) { in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineSelect.cpp302 if (!IC || !IC->isEquality() || !SI.getType()->isIntegerTy()) in foldSelectICmpAndOr()
366 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
552 if (ICmpInst::isEquality(Pred) && in visitSelectInstWithICmp()
759 if (!IC || !IC->isEquality() || !SI.getType()->isIntegerTy()) in foldSelectICmpAnd()
DInstCombineAndOrXor.cpp633 if (!ICmpInst::isEquality(LHSCC)) in foldLogOpOfMaskedICmpsHelper()
665 if (!ICmpInst::isEquality(RHSCC)) in foldLogOpOfMaskedICmpsHelper()
710 assert(ICmpInst::isEquality(LHSCC) && ICmpInst::isEquality(RHSCC) && in foldLogOpOfMaskedICmps()
994 (ICmpInst::isEquality(LHSCC) && in FoldAndOfICmps()
1968 (ICmpInst::isEquality(LHSCC) && in FoldOrOfICmps()
DInstCombineCasts.cpp622 ICI->isEquality()) { in transformZExtICmp()
666 if (ICI->isEquality() && CI.getType() == ICI->getOperand(0)->getType()) { in transformZExtICmp()
998 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp()
DInstructionCombining.cpp1884 if (!ICI->isEquality() || !isa<ConstantPointerNull>(ICI->getOperand(1))) in isAllocSiteRemovable()
/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp306 if (!CI || !CI->isEquality()) in calcPointerHeuristics()
483 if (FCmp->isEquality()) { in calcFloatingPointHeuristics()
DInstructionSimplify.cpp1470 !ICmpInst::isEquality(EqPred)) in simplifyUnsignedRangeCheck()
2600 NoLHSWrapProblem = ICmpInst::isEquality(Pred) || in SimplifyICmpInst()
2606 NoRHSWrapProblem = ICmpInst::isEquality(Pred) || in SimplifyICmpInst()
3045 (ICmpInst::isEquality(Pred) || in SimplifyICmpInst()
3066 if (ICmpInst::isEquality(Pred)) { in SimplifyICmpInst()
3352 if (ICmpInst::isEquality(Pred) && in SimplifySelectInst()
DInlineCost.cpp586 if (I.isEquality() && isa<ConstantPointerNull>(I.getOperand(1)) && in visitCmpInst()
DLazyValueInfo.cpp899 if (ICI->isEquality() && ICI->getOperand(0) == Val) { in getValueFromFromCondition()
DValueTracking.cpp4063 if (CmpI->isEquality()) in matchSelectPattern()
/external/llvm/include/llvm/IR/
DInstructions.h1192 static bool isEquality(Predicate P) {
1198 bool isEquality() const {
1199 return isEquality(getPredicate());
1204 bool isCommutative() const { return isEquality(); }
1209 return !isEquality();
1215 return !isEquality(P);
1314 static bool isEquality(Predicate Pred) {
1321 bool isEquality() const { return isEquality(getPredicate()); }
1326 return isEquality() ||
1335 bool isRelational() const { return !isEquality(); }
DInstrTypes.h1022 bool isEquality() const;
/external/llvm/lib/IR/
DInstructions.cpp3353 bool CmpInst::isEquality() const { in isEquality() function in CmpInst
3355 return IC->isEquality(); in isEquality()
3356 return cast<FCmpInst>(this)->isEquality(); in isEquality()
DConstantFold.cpp1682 if (ICmpInst::isEquality(Predicate) || (isIntegerPredicate && C1 == C2)) in ConstantFoldCompareInstruction()
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp1432 if (cast<ICmpInst>(&I)->isEquality()) in ResolvedUndefsIn()
DLoopStrengthReduce.cpp2982 if (CI->isEquality()) { in CollectFixupsAndInitialFormulae()
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp1806 if (I.isEquality()) { in visitICmpInst()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp5394 if (IC->isEquality()) in IsOnlyUsedInZeroEqualityComparison()