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.h64 bool isAllOnesValue() const;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAtomicRMW.cpp88 return C->isAllOnesValue(); in isSaturating()
H A DInstCombineCalls.cpp346 if (ConstMask->isAllOnesValue()) { in simplifyMaskedStore()
382 if (ConstMask->isAllOnesValue()) in simplifyMaskedGather()
426 if (ConstMask->isAllOnesValue()) { in simplifyMaskedScatter()
H A DInstCombineCompares.cpp3133 ->isAllOnesValue(); in foldICmpSelectConstant()
3136 ->isAllOnesValue(); in foldICmpSelectConstant()
3139 ->isAllOnesValue(); in foldICmpSelectConstant()
3412 if (match(BOp1, m_APInt(BOC)) && BO->hasOneUse() && RHS->isAllOnesValue()) { in foldICmpBinOpEqualityWithConstant()
6901 bool IsIntMinPosion = C->isAllOnesValue(); in foldICmpCommutative()
H A DInstCombineSimplifyDemanded.cpp1787 else if (CElt->isAllOnesValue()) in SimplifyDemandedVectorElts()
/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 isSupportedStep()
711 assert(Step->isAllOnesValue() && "Step should be -1!"); in widenICmpRangeCheck()
859 assert(Step->isAllOnesValue() && "Step should be -1!"); in parseLoopLatchICmp()
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.cpp511 return ConstCond->isAllOnesValue() ? IfTrue : IfFalse; in computeWideningScore()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp999 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskIsAllOneOrUndef()
1008 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskIsAllOneOrUndef()
1025 if (ConstMask->isAllOnesValue() || isa<UndefValue>(ConstMask)) in maskContainsAllOneOrUndef()
1034 if (MaskElt->isAllOnesValue() || isa<UndefValue>(MaskElt)) in maskContainsAllOneOrUndef()
H A DMustExecute.cpp154 return SimpleCst->isAllOnesValue(); in CanProveNotTakenFirstIteration()
H A DInstructionSimplify.cpp1006 return (C && C->isAllOnesValue()); in isICmpTrue()
3868 if (AnyEq->isAllOnesValue() && MaxRecurse) in simplifyICmpInst()
3945 if (AnyEq->isAllOnesValue() && MaxRecurse) in simplifyICmpInst()
6448 if (C != nullptr && C->isAllOnesValue()) in simplifyBinaryIntrinsic()
H A DScalarEvolution.cpp454 bool SCEV::isAllOnesValue() const { in isAllOnesValue() function in SCEV
2701 Mul->getOperand(0)->isAllOnesValue()) { in getAddExpr()
3185 if (Ops[0]->isAllOnesValue()) { in getMulExpr()
4601 !Add->getOperand(0)->isAllOnesValue()) in MatchNotExpr()
4606 !AddRHS->getOperand(0)->isAllOnesValue()) in MatchNotExpr()
10653 ME->getOperand(0)->isAllOnesValue()) { in SimplifyICmpOperands()
H A DInlineCost.cpp2401 Value *SelectedV = CondC->isAllOnesValue() ? TrueVal in visitSelectInst()
H A DConstantFolding.cpp764 if (C->isAllOnesValue() && in ConstantFoldLoadFromUniformValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DPoisonChecking.cpp239 if (CI->isAllOnesValue()) in CreateAssert()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp78 if (V->isAllOnesValue()) in FoldBitCast()
339 if (Cond->isAllOnesValue()) return V1; in ConstantFoldSelectInstruction()
H A DAutoUpgrade.cpp1536 if (C->isAllOnesValue()) in emitX86Select()
1548 if (C->isAllOnesValue()) in emitX86ScalarSelect()
1795 if (C->isAllOnesValue()) in upgradeMaskedStore()
1818 if (C->isAllOnesValue()) in upgradeMaskedLoad()
1872 if (!C || !C->isAllOnesValue()) in applyX86MaskOn1BitsVec()
H A DConstants.cpp93 bool Constant::isAllOnesValue() const { in isAllOnesValue() function in Constant
105 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/lib/CodeGen/GlobalISel/
H A DUtils.cpp1423 return MI.getOperand(1).getCImm()->isAllOnesValue(); in isAllOnesOrAllOnesSplat()
/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.cpp2063 if (MaskC->isAllOnesValue()) { in instCombineIntrinsic()
2107 if (MaskC->isAllOnesValue()) { in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp772 return ConstValue->isAllOnesValue(); in scalarizeVPIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp577 } else if (I->second->isAllOnesValue()) { in visitMulExpr()

12