Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp282 return ::isKnownNonZero( in isKnownNonZero()
1987 (OrZero || isKnownNonZero(I, Depth, Q)); in isKnownToBeAPowerOfTwo()
2151 if (isKnownNonZero(GTI.getOperand(), Depth, Q)) in isGEPKnownNonNull()
2309 if (isKnownNonZero(Y, DemandedElts, Depth, Q) || in isNonZeroAdd()
2310 isKnownNonZero(X, DemandedElts, Depth, Q)) in isNonZeroAdd()
2679 return isKnownNonZero(RP, Depth, Q); in isKnownNonZeroFromOperator()
2862 return isKnownNonZero(V, DemandedElts, Depth, Q); in isKnownNonZero()
2985 return isKnownNonZero(Op, Depth + 1, Q); in isAddOfNonZero()
7335 static bool isKnownNonZero(const Value *V) { in isKnownNonZero() function
7695 !isKnownNonZero(CmpRHS)) in matchSelectPattern()
[all …]
H A DLoads.cpp102 if (!CheckForNonNull || isKnownNonZero(V, DL, 0, AC, CtxI, DT)) { in isDereferenceableAndAlignedPointer()
136 isKnownNonZero(V, DL, 0, AC, CtxI, DT) && !V->canBeFreed()) { in isDereferenceableAndAlignedPointer()
H A DInstructionSimplify.cpp1589 isKnownNonZero(B, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnsignedRangeCheck()
1593 isKnownNonZero(B, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnsignedRangeCheck()
1611 isKnownNonZero(X, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnsignedRangeCheck()
1617 isKnownNonZero(X, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in simplifyUnsignedRangeCheck()
2826 llvm::isKnownNonZero(RHS, DL, 0, nullptr, CxtI, DT)) in computePointerICmp()
2829 llvm::isKnownNonZero(LHS, DL, 0, nullptr, CxtI, DT)) in computePointerICmp()
2985 if (isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT, Q.IIQ.UseInstrInfo)) in simplifyICmpWithZero()
3006 isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT)) in simplifyICmpWithZero()
3023 isKnownNonZero(LHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT)) in simplifyICmpWithZero()
3177 if (isKnownNonZero(RHS, Q.DL, 0, Q.AC, Q.CxtI, Q.DT)) { in simplifyICmpWithBinOpOnLHS()
[all …]
H A DLazyValueInfo.cpp644 if (PT && isKnownNonZero(BBI, DL)) in solveBlockValueImpl()
1866 isKnownNonZero(V->stripPointerCastsSameRepresentation(), DL)) { in getPredicateAt()
H A DDependenceAnalysis.cpp1081 return SE->isKnownNonZero(Delta); in isKnownPredicate()
1313 bool DeltaMaybeZero = !SE->isKnownNonZero(Delta); in strongSIVtest()
3308 if (!SE->isKnownNonZero(Level.Distance)) // if may be zero in updateDirection()
H A DBasicAliasAnalysis.cpp1238 isKnownNonZero(Var.Val.V, DL, 0, &AC, Var.CxtI, DT)) { in aliasGEP()
H A DScalarEvolution.cpp6894 if (llvm::isKnownNonZero(V, DL)) in getRangeRef()
9965 isKnownNonZero(BackedgeTakenCount) && in computeSCEVAtScope()
10785 bool ScalarEvolution::isKnownNonZero(const SCEV *S) { in isKnownNonZero() function in ScalarEvolution
10789 return isKnownNonZero(SExt->getOperand(0)); in isKnownNonZero()
11174 return !isa<SCEVCouldNotCompute>(Diff) && isKnownNonZero(Diff); in isKnownPredicateViaConstantRanges()
12745 if (!isKnownNonZero(AR->getStepRecurrence(*this))) in howManyLessThans()
12851 if (!isKnownNonZero(Stride)) { in howManyLessThans()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp308 } else if (isKnownNonZero(Size, DL)) { in annotateNonNullAndDereferenceable()
397 if (isKnownNonZero(Size, DL)) in optimizeStrNCat()
616 if (isKnownNonZero(Size, DL)) in optimizeStrNCmp()
752 if (isKnownNonZero(Size, DL)) in optimizeStrLCpy()
836 if (isKnownNonZero(Size, DL)) { in optimizeStringNCpy()
929 (!Bound || isKnownNonZero(Bound, DL))) { in optimizeStringLength()
1050 if (isKnownNonZero(Bound, DL)) in optimizeStrNLen()
1294 if (isKnownNonZero(Size, DL)) { in optimizeMemChr()
2870 } else if (!isKnownNonZero(EndPtr, DL)) in optimizeStrToInt()
3296 if (isKnownNonZero(CI->getOperand(1), DL)) in optimizeSnPrintF()
H A DPromoteMemoryToRegister.cpp461 !isKnownNonZero(Val, DL, 0, AC, LI, DT)) in convertMetadataToAssumes()
H A DScalarEvolutionExpander.cpp620 /*IsSafeToHoist*/ SE.isKnownNonZero(S->getRHS())); in visitUDivExpr()
2226 if (!SE.isKnownNonZero(D->getRHS())) { in follow()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDeletion.cpp411 if (!isa<SCEVCouldNotCompute>(BTC) && SE.isKnownNonZero(BTC)) in breakBackedgeIfNotTaken()
H A DLoopStrengthReduce.cpp6852 !SE.isKnownNonZero(AddRec->getStepRecurrence(SE))) in canFoldTermCondOfLoop()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h127 bool isKnownNonZero(const Value *V, const DataLayout &DL, unsigned Depth = 0,
H A DScalarEvolution.h1021 bool isKnownNonZero(const SCEV *S);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1258 if (!XKnown.One.isZero() || isKnownNonZero(X, DL, 0, Q.AC, Q.CxtI, Q.DT)) in foldICmpWithZero()
1263 if (!YKnown.One.isZero() || isKnownNonZero(Y, DL, 0, Q.AC, Q.CxtI, Q.DT)) in foldICmpWithZero()
3028 if (llvm::isKnownNonZero(X, DL, 0, Q.AC, Q.CxtI, Q.DT)) in foldICmpAddConstant()
4552 isKnownNonZero(A, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in foldICmpXorXX()
4835 isKnownNonZero(B, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in foldICmpBinOp()
4839 isKnownNonZero(D, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT)) in foldICmpBinOp()
4882 isKnownNonZero(Z, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT); in foldICmpBinOp()
4888 NonZero = isKnownNonZero(Z, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT); in foldICmpBinOp()
H A DInstCombineCalls.cpp612 isKnownNonZero(Op0, IC.getDataLayout(), 0, &IC.getAssumptionCache(), &II, in foldCttzCtlz()
2049 isKnownNonZero(II, DL, /*Depth*/ 0, &AC, II, &DT))) { in visitCallInst()
3599 isKnownNonZero(V, DL, 0, &AC, &Call, &DT)) in visitCallBase()
3779 isKnownNonZero(DerivedPtr, DL, 0, &AC, &Call, &DT)) { in visitCallBase()
H A DInstCombinePHI.cpp1487 if (isKnownNonZero(VA, DL, 0, &AC, CtxI, &DT)) { in visitPHINode()
H A DInstCombineAddSub.cpp989 if (llvm::isKnownNonZero(X, DL, 0, Q.AC, Q.CxtI, Q.DT)) in foldAddWithConstant()
H A DInstCombineAndOrXor.cpp1035 return isKnownNonZero(V, Q.DL, /*Depth=*/0, Q.AC, Q.CxtI, Q.DT); in foldUnsignedUnderflowCheck()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionAttrs.cpp1178 if (isKnownNonZero(RetVal, DL)) in isReturnNonNull()
H A DAttributorAttributes.cpp2455 return !isKnownNonZero(VAC.getValue(), A.getDataLayout(), 0, AC, in isImpliedByIR()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp849 if (!SafeToSpeculate && !isKnownNonZero(EVL, DL, 0, &AC, &VPI, &DT)) in scalarizeVPIntrinsic()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCall.cpp4118 bool provablyNonNull = llvm::isKnownNonZero(srcAddr.getPointer(), in emitWriteback()
4258 bool provablyNonNull = llvm::isKnownNonZero(srcAddr.getPointer(), in emitWritebackArg()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp1287 if (llvm::isKnownNonZero(ConvertedShadow, DL)) { in storeOrigin()
1433 if (llvm::isKnownNonZero(ConvertedShadow, DL)) { in materializeInstructionChecks()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp2282 if (isKnownNonZero(Op, *DL)) in despeculateCountZeros()