| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 276 static bool isKnownNonZero(const Value *V, const APInt &DemandedElts, 293 (Known.isNonZero() || isKnownNonZero(V, SQ, Depth)); in isKnownPositive() 973 isKnownNonZero(I->getOperand(1), DemandedElts, Q, Depth + 1)); in computeKnownBitsFromShiftOperator() 2499 (OrZero || isKnownNonZero(I, Q, Depth)); in isKnownToBeAPowerOfTwo() 2509 return OrZero || isKnownNonZero(I->getOperand(0), Q, Depth); in isKnownToBeAPowerOfTwo() 2632 if (isKnownNonZero(GEP->getPointerOperand(), Q, Depth)) in isGEPKnownNonNull() 2671 if (isKnownNonZero(GTI.getOperand(), Q, Depth)) in isGEPKnownNonNull() 2837 return isKnownNonZero(Y, DemandedElts, Q, Depth) || in isNonZeroAdd() 2838 isKnownNonZero(X, DemandedElts, Q, Depth); in isNonZeroAdd() 2846 if (isKnownNonZero(Y, DemandedElts, Q, Depth) || in isNonZeroAdd() [all …]
|
| H A D | Loads.cpp | 136 !isKnownNonZero(V, SimplifyQuery(DL, DT, AC, CtxI))) in isDereferenceableAndAlignedPointer() 184 isKnownNonZero(V, SimplifyQuery(DL, DT, AC, CtxI)) && in isDereferenceableAndAlignedPointer()
|
| H A D | InstructionSimplify.cpp | 1556 EqPred == ICmpInst::ICMP_NE && isKnownNonZero(B, Q)) in simplifyUnsignedRangeCheck() 1559 EqPred == ICmpInst::ICMP_EQ && isKnownNonZero(B, Q)) in simplifyUnsignedRangeCheck() 1577 isKnownNonZero(X, Q)) in simplifyUnsignedRangeCheck() 1583 isKnownNonZero(X, Q)) in simplifyUnsignedRangeCheck() 2779 if (isAllocLikeFn(LHS, TLI) && llvm::isKnownNonZero(RHS, Q)) in computePointerICmp() 2781 else if (isAllocLikeFn(RHS, TLI) && llvm::isKnownNonZero(LHS, Q)) in computePointerICmp() 2938 if (isKnownNonZero(LHS, Q)) in simplifyICmpWithZero() 2943 if (isKnownNonZero(LHS, Q)) in simplifyICmpWithZero() 2958 if (LHSKnown.isNonNegative() && isKnownNonZero(LHS, Q)) in simplifyICmpWithZero() 2974 if (LHSKnown.isNonNegative() && isKnownNonZero(LHS, Q)) in simplifyICmpWithZero() [all …]
|
| H A D | LazyValueInfo.cpp | 600 if (PT && isKnownNonZero(BBI, DL)) in solveBlockValueImpl() 1925 isKnownNonZero(V->stripPointerCastsSameRepresentation(), DL)) { in getPredicateAt()
|
| H A D | ScalarEvolution.cpp | 6920 if (llvm::isKnownNonZero(V, DL)) in getRangeRef() 7339 return M && (!isKnownNonZero(Op1) || !isGuaranteedNotToBePoison(Op1)); in isGuaranteedNotToCauseUB() 10082 isKnownNonZero(BackedgeTakenCount) && in computeSCEVAtScope() 10619 if (!(loopIsFiniteByAssumption(L) && isKnownNonZero(Start)) && in howFarToZero() 10620 !isKnownNonZero(StepWLG)) in howFarToZero() 10946 bool ScalarEvolution::isKnownNonZero(const SCEV *S) { in isKnownNonZero() function in ScalarEvolution 10950 return isKnownNonZero(SExt->getOperand(0)); in isKnownNonZero() 10971 return all_of(Mul->operands(), NonRecursive) && (OrZero || isKnownNonZero(S)); in isKnownToBeAPowerOfTwo() 11395 return !isa<SCEVCouldNotCompute>(Diff) && isKnownNonZero(Diff); in isKnownPredicateViaConstantRanges() 12977 if (!isKnownNonZero(AR->getStepRecurrence(*this))) in howManyLessThans() [all …]
|
| H A D | DependenceAnalysis.cpp | 1100 return SE->isKnownNonZero(Delta); in isKnownPredicate() 1332 bool DeltaMaybeZero = !SE->isKnownNonZero(Delta); in strongSIVtest() 3318 if (!SE->isKnownNonZero(Level.Distance)) // if may be zero in updateDirection()
|
| H A D | BasicAliasAnalysis.cpp | 1353 isKnownNonZero(Var.Val.V, SimplifyQuery(DL, DT, &AC, Var.CxtI))) { in aliasGEP()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVCodeGenPrepare.cpp | 260 if (!isKnownNonZero(VL, {*DL, DT, nullptr, &II})) in expandVPStrideLoad()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LoopTermFold.cpp | 157 !SE.isKnownNonZero(AddRec->getStepRecurrence(SE))) in canFoldTermCondOfLoop()
|
| H A D | LoopDeletion.cpp | 411 if (!isa<SCEVCouldNotCompute>(BTC) && SE.isKnownNonZero(BTC)) in breakBackedgeIfNotTaken()
|
| H A D | MemCpyOptimizer.cpp | 1305 if (!isKnownNonZero(SrcSize, in processMemSetMemCpyDependence()
|
| H A D | Reassociate.cpp | 547 Flags.AllKnownNonZero &= isKnownNonZero(V, SimplifyQuery(DL)); in LinearizeExprTree()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 320 } else if (isKnownNonZero(Size, DL)) { in annotateNonNullAndDereferenceable() 414 if (isKnownNonZero(Size, DL)) in optimizeStrNCat() 628 if (isKnownNonZero(Size, DL)) in optimizeStrNCmp() 757 if (isKnownNonZero(Size, DL)) in optimizeStrLCpy() 838 if (isKnownNonZero(Size, DL)) { in optimizeStringNCpy() 931 (!Bound || isKnownNonZero(Bound, DL))) { in optimizeStringLength() 1052 if (isKnownNonZero(Bound, DL)) in optimizeStrNLen() 1297 if (isKnownNonZero(Size, DL)) { in optimizeMemChr() 3218 } else if (!isKnownNonZero(EndPtr, DL)) in optimizeStrToInt() 3637 if (isKnownNonZero(CI->getOperand(1), DL)) in optimizeSnPrintF()
|
| H A D | LoopPeel.cpp | 372 if (!SE.isKnownNonZero(BTC) && in shouldPeelLastIteration() 1120 if (!SE->isKnownNonZero(BTC)) { in peelLoop()
|
| H A D | ScalarEvolutionExpander.cpp | 688 if (!SE.isKnownNonZero(RHSExpr) || !GuaranteedNotPoison) in visitUDivExpr() 693 /*IsSafeToHoist*/ SE.isKnownNonZero(S->getRHS())); in visitUDivExpr() 2331 if (!SE.isKnownNonZero(D->getRHS())) { in follow()
|
| H A D | PromoteMemoryToRegister.cpp | 524 !isKnownNonZero(Val, SimplifyQuery(DL, DT, AC, LI))) in convertMetadataToAssumes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 1287 if (!XKnown.One.isZero() || isKnownNonZero(X, Q)) in foldICmpWithZero() 1292 if (!YKnown.One.isZero() || isKnownNonZero(Y, Q)) in foldICmpWithZero() 3244 if (llvm::isKnownNonZero(X, Q)) in foldICmpAddConstant() 3694 ? (match(TV, m_Zero()) && isKnownNonZero(FV, Q)) in foldICmpBinOpEqualityWithConstant() 3695 : (match(FV, m_Zero()) && isKnownNonZero(TV, Q))) { in foldICmpBinOpEqualityWithConstant() 3716 ? (match(FV, m_Zero()) && isKnownNonZero(TV, Q)) in foldICmpBinOpEqualityWithConstant() 3717 : (match(TV, m_Zero()) && isKnownNonZero(FV, Q)))) { in foldICmpBinOpEqualityWithConstant() 4576 return !ICmpInst::isSigned(Pred) || isKnownNonZero(X, Q); in foldICmpWithLowBitMaskedVal() 5096 if (PredOut != Pred && isKnownNonZero(A, Q)) in foldICmpXorXX() 5421 isKnownNonZero(B, Q)) in foldICmpBinOp() [all …]
|
| H A D | InstCombineCalls.cpp | 625 isKnownNonZero(Op0, IC.getSimplifyQuery().getWithInstruction(&II))) { in foldCttzCtlz() 716 isKnownNonZero(Op0, IC.getSimplifyQuery().getWithInstruction(&II))) in foldCtpop() 2331 if (!isKnownNonZero(ShAmtC, SQ.getWithInstruction(II))) in visitCallInst() 2430 isKnownNonZero(II, getSimplifyQuery().getWithInstruction(II)))) { in visitCallInst() 4123 } else if (isKnownNonZero(V, in visitCallBase() 4306 isKnownNonZero(DerivedPtr, in visitCallBase()
|
| H A D | InstCombinePHI.cpp | 1537 if (isKnownNonZero(VA, getSimplifyQuery().getWithInstruction(CtxI))) { in visitPHINode()
|
| H A D | InstCombineAndOrXor.cpp | 1124 if (!isKnownNonZero(NonZero, Q)) in foldUnsignedUnderflowCheck() 1126 return isKnownNonZero(NonZero, Q); in foldUnsignedUnderflowCheck()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueTracking.h | 151 LLVM_ABI bool isKnownNonZero(const Value *V, const SimplifyQuery &Q,
|
| H A D | ScalarEvolution.h | 1056 LLVM_ABI bool isKnownNonZero(const SCEV *S);
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGPointerAuth.cpp | 377 if (!IsKnownNonNull && !llvm::isKnownNonZero(Value, CGM.getDataLayout())) { in emitPointerAuthResign()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | FunctionAttrs.cpp | 1571 if (isKnownNonZero(RetVal, DL)) in isReturnNonNull() 1719 !isKnownNonZero(RetVal, DL)) in addNoUndefAttrs()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CodeGenPrepare.cpp | 1788 if (!IsStrictlyPowerOf2Test || !isKnownNonZero(Cmp->getOperand(0), *DL)) in unfoldPowerOf2Test() 1804 (IsStrictlyPowerOf2Test && isKnownNonZero(Cmp->getOperand(0), *DL))) { in unfoldPowerOf2Test() 2562 if (isKnownNonZero(Op, *DL)) in despeculateCountZeros()
|