Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstant.h65 bool isAllOnesValue() const;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAtomicRMW.cpp88 return C->isAllOnesValue(); in isSaturating()
H A DInstCombineCalls.cpp333 if (ConstMask->isAllOnesValue()) { in simplifyMaskedStore()
369 if (ConstMask->isAllOnesValue()) in simplifyMaskedGather()
413 if (ConstMask->isAllOnesValue()) { in simplifyMaskedScatter()
H A DInstCombineSimplifyDemanded.cpp1843 else if (CElt->isAllOnesValue()) in SimplifyDemandedVectorElts()
H A DInstCombineCompares.cpp3524 if (match(BOp1, m_APInt(BOC)) && BO->hasOneUse() && RHS->isAllOnesValue()) { in foldICmpBinOpEqualityWithConstant()
7230 bool IsIntMinPosion = C->isAllOnesValue(); in foldICmpCommutative()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDeletion.cpp203 auto *Selected = C->isAllOnesValue() ? Select->getTrueValue() in getValueOnFirstIteration()
370 if (ConstCondition->isAllOnesValue()) in canProveExitOnFirstIteration()
H A DLoopPredication.cpp479 return Step->isOne() || (Step->isAllOnesValue() && EnableCountDownLoop); in isSafeToTruncateWideIVType()
711 assert(Step->isAllOnesValue() && "Step should be -1!"); in widenICmpRangeCheck()
859 assert(Step->isAllOnesValue() && "Step should be -1!"); in widenWidenableBranchGuardConditions()
H A DScalarizeMaskedMemIntrin.cpp163 if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) { in scalarizeMaskedLoad()
299 if (isa<Constant>(Mask) && cast<Constant>(Mask)->isAllOnesValue()) { in scalarizeMaskedStore()
H A DGuardWidening.cpp514 return ConstCond->isAllOnesValue() ? IfTrue : IfFalse; in computeWideningScore()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp1058 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskIsAllOneOrUndef()
1067 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskIsAllOneOrUndef()
1084 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskContainsAllOneOrUndef()
1093 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskContainsAllOneOrUndef()
H A DMustExecute.cpp154 return SimpleCst->isAllOnesValue(); in CanProveNotTakenFirstIteration()
H A DInstructionSimplify.cpp1007 return (C && C->isAllOnesValue()); in isICmpTrue()
3873 if (AnyEq->isAllOnesValue() && MaxRecurse) in simplifyICmpInst()
3950 if (AnyEq->isAllOnesValue() && MaxRecurse) in simplifyICmpInst()
6490 if (C != nullptr && C->isAllOnesValue()) in simplifyBinaryIntrinsic()
H A DScalarEvolution.cpp454 bool SCEV::isAllOnesValue() const { in isAllOnesValue() function in SCEV
2703 Mul->getOperand(0)->isAllOnesValue()) { in getAddExpr()
3187 if (Ops[0]->isAllOnesValue()) { in getMulExpr()
4606 !Add->getOperand(0)->isAllOnesValue()) in MatchNotExpr()
4611 !AddRHS->getOperand(0)->isAllOnesValue()) in MatchNotExpr()
10649 ME && ME->getNumOperands() == 2 && ME->getOperand(0)->isAllOnesValue()) { in MatchBinarySub()
10655 ME && ME->getNumOperands() == 2 && ME->getOperand(0)->isAllOnesValue()) { in MatchBinarySub()
H A DInlineCost.cpp2409 Value *SelectedV = CondC->isAllOnesValue() ? TrueVal in visitSelectInst()
H A DConstantFolding.cpp769 if (C->isAllOnesValue() && in ConstantFoldLoadFromUniformValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPoisonChecking.cpp240 if (CI->isAllOnesValue()) in CreateAssert()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp78 if (V->isAllOnesValue()) in FoldBitCast()
271 if (Cond->isAllOnesValue()) return V1; in ConstantFoldSelectInstruction()
H A DAutoUpgrade.cpp1583 if (C->isAllOnesValue()) in emitX86Select()
1595 if (C->isAllOnesValue()) in emitX86ScalarSelect()
1842 if (C->isAllOnesValue()) in upgradeMaskedStore()
1865 if (C->isAllOnesValue()) in upgradeMaskedLoad()
1919 if (!C || !C->isAllOnesValue()) in applyX86MaskOn1BitsVec()
H A DConstants.cpp107 bool Constant::isAllOnesValue() const { in isAllOnesValue() function in Constant
119 return SplatVal->isAllOnesValue(); in isAllOnesValue()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp89 return ConstValue->isAllOnesValue(); in isAllTrueMask()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DScalarEvolution.h159 bool isAllOnesValue() const;
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp2212 if (MaskC->isAllOnesValue()) { in instCombineIntrinsic()
2256 if (MaskC->isAllOnesValue()) { in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1553 return MI.getOperand(1).getCImm()->isAllOnesValue(); in isAllOnesOrAllOnesSplat()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp626 } else if (I->second->isAllOnesValue()) { in visitMulExpr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp812 return ConstValue->isAllOnesValue(); in scalarizeVPIntrinsic()

12