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.cpp72 if (IC->isEquality()) in isOnlyUsedInZeroEqualityComparison()
87 if (IC->isEquality() && IC->getOperand(1) == With) in isOnlyUsedInEqualityComparison()
DSimplifyCFG.cpp535 if (ICI->isEquality() && GetConstantInt(ICI->getOperand(1), DL)) in isValueEqualityComparison()
4443 if (ICI->isEquality() && isa<ConstantInt>(ICI->getOperand(1))) { in SimplifyUncondBranch()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp804 if (!ICI.isEquality() && DivIsSigned != ICI.isSigned()) in FoldICmpDivCst()
959 if (!ICI.isEquality()) { in FoldICmpShrCst()
1039 assert(I.isEquality() && "Cannot fold icmp gt/lt"); in FoldICmpCstShrCst()
1099 assert(I.isEquality() && "Cannot fold icmp gt/lt"); in FoldICmpCstShlCst()
1148 if (ICI.isEquality() && LHSI->hasOneUse()) { in visitICmpInstWithInstAndIntCst()
1199 if (!ICI.isEquality() && XorCst->getValue().isSignBit()) { in visitICmpInstWithInstAndIntCst()
1209 if (!ICI.isEquality() && XorCst->isMaxValue(true)) { in visitICmpInstWithInstAndIntCst()
1246 if (ICI.isEquality() || in visitICmpInstWithInstAndIntCst()
1263 if (ICI.isEquality() && RHSV.getActiveBits() <= Ty->getBitWidth()) { in visitICmpInstWithInstAndIntCst()
1357 ICI.isEquality() && !Shift->isArithmeticShift() && in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineSelect.cpp395 if (!IC || !IC->isEquality() || !SI.getType()->isIntegerTy()) in foldSelectICmpAndOr()
459 if (!ICI->isEquality() || !match(CmpRHS, m_Zero())) in foldSelectCttzCtlz()
681 if (ICmpInst::isEquality(Pred) && in visitSelectInstWithICmp()
843 if (!IC || !IC->isEquality() || !SI.getType()->isIntegerTy()) in foldSelectICmpAnd()
DInstCombineAndOrXor.cpp635 if (!ICmpInst::isEquality(LHSCC)) in foldLogOpOfMaskedICmpsHelper()
667 if (!ICmpInst::isEquality(RHSCC)) in foldLogOpOfMaskedICmpsHelper()
712 assert(ICmpInst::isEquality(LHSCC) && ICmpInst::isEquality(RHSCC) && in foldLogOpOfMaskedICmps()
996 (ICmpInst::isEquality(LHSCC) && in FoldAndOfICmps()
1879 (ICmpInst::isEquality(LHSCC) && in FoldOrOfICmps()
DInstCombineCasts.cpp547 ICI->isEquality()) { in transformZExtICmp()
591 if (ICI->isEquality() && CI.getType() == ICI->getOperand(0)->getType()) { in transformZExtICmp()
924 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp()
DInstructionCombining.cpp1819 if (!ICI->isEquality() || !isa<ConstantPointerNull>(ICI->getOperand(1))) in isAllocSiteRemovable()
/external/llvm/include/llvm/IR/
DInstructions.h1107 static bool isEquality(Predicate P) {
1113 bool isEquality() const {
1114 return isEquality(getPredicate());
1119 bool isCommutative() const { return isEquality(); }
1124 return !isEquality();
1130 return !isEquality(P);
1227 static bool isEquality(Predicate Pred) {
1234 bool isEquality() const { return isEquality(getPredicate()); }
1239 return isEquality() ||
1248 bool isRelational() const { return !isEquality(); }
DInstrTypes.h818 bool isEquality() const;
/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp284 if (!CI || !CI->isEquality()) in calcPointerHeuristics()
460 if (FCmp->isEquality()) { in calcFloatingPointHeuristics()
DInstructionSimplify.cpp1456 !ICmpInst::isEquality(EqPred)) in simplifyUnsignedRangeCheck()
2528 NoLHSWrapProblem = ICmpInst::isEquality(Pred) || in SimplifyICmpInst()
2534 NoRHSWrapProblem = ICmpInst::isEquality(Pred) || in SimplifyICmpInst()
2973 (ICmpInst::isEquality(Pred) || in SimplifyICmpInst()
2994 if (ICmpInst::isEquality(Pred)) { in SimplifyICmpInst()
3186 if (ICmpInst::isEquality(Pred) && in SimplifySelectInst()
DLazyValueInfo.cpp838 if (ICI->isEquality() && ICI->getOperand(0) == Val) { in getValueFromFromCondition()
/external/llvm/lib/Analysis/IPA/
DInlineCost.cpp541 if (I.isEquality() && isa<ConstantPointerNull>(I.getOperand(1))) in visitCmpInst()
/external/llvm/lib/IR/
DInstructions.cpp3082 bool CmpInst::isEquality() const { in isEquality() function in CmpInst
3084 return IC->isEquality(); in isEquality()
3085 return cast<FCmpInst>(this)->isEquality(); in isEquality()
DConstantFold.cpp1676 if (ICmpInst::isEquality(Predicate) || (isIntegerPredicate && C1 == C2)) in ConstantFoldCompareInstruction()
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp1618 if (!Compare || !Compare->isEquality()) in findCleanupHandlers()
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp1424 if (cast<ICmpInst>(I)->isEquality()) in ResolvedUndefsIn()
DLoopStrengthReduce.cpp3007 if (CI->isEquality()) { in CollectFixupsAndInitialFormulae()
/external/llvm/lib/Transforms/Instrumentation/
DMemorySanitizer.cpp1740 if (I.isEquality()) { in visitICmpInst()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp5580 if (IC->isEquality()) in IsOnlyUsedInZeroEqualityComparison()