Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombineInternal.h115 unsigned ComputeNumSignBits(const Value *V) const { in ComputeNumSignBits() function
116 return llvm::ComputeNumSignBits( in ComputeNumSignBits()
H A DTruncInstCombine.cpp321 unsigned NumSignBits = ComputeNumSignBits(I->getOperand(0)); in getBestTruncatedType()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp323 static unsigned ComputeNumSignBits(const Value *V, const APInt &DemandedElts,
326 static unsigned ComputeNumSignBits(const Value *V, const SimplifyQuery &Q, in ComputeNumSignBits() function
331 return ComputeNumSignBits(V, DemandedElts, Q, Depth); in ComputeNumSignBits()
334 unsigned llvm::ComputeNumSignBits(const Value *V, const DataLayout &DL, in ComputeNumSignBits() function in llvm
338 return ::ComputeNumSignBits( in ComputeNumSignBits()
347 unsigned SignBits = ComputeNumSignBits(V, DL, AC, CxtI, DT, Depth); in ComputeMaxSignificantBits()
3988 static unsigned ComputeNumSignBits(const Value *V, const APInt &DemandedElts, in ComputeNumSignBits() function
4059 Tmp = ComputeNumSignBits(Src, Q, Depth + 1); in ComputeNumSignBitsImpl()
4067 return ComputeNumSignBits(U->getOperand(0), DemandedElts, Q, Depth + 1) + in ComputeNumSignBitsImpl()
4081 ComputeNumSignBits(U->getOperand(0), DemandedElts, Q, Depth + 1); in ComputeNumSignBitsImpl()
[all …]
H A DIVDescriptors.cpp117 auto NumSignBits = ComputeNumSignBits(Exit, DL, AC, nullptr, DT); in computeRecurrenceType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3726 ComputeNumSignBits(Op.getOperand(1), DemandedElts, Depth + 1); in computeKnownBits()
3730 ComputeNumSignBits(Op.getOperand(0), DemandedElts, Depth + 1); in computeKnownBits()
4301 ComputeNumSignBits(Op.getOperand(0), DemandedElts, Depth + 1) - 1); in computeKnownBits()
4367 unsigned SignBits = ComputeNumSignBits(Op.getOperand(0), Depth + 1); in computeKnownBits()
4513 if (ComputeNumSignBits(N0) > 1 && ComputeNumSignBits(N1) > 1) in computeOverflowForSignedAdd()
4551 if (ComputeNumSignBits(N0) > 1 && ComputeNumSignBits(N1) > 1) in computeOverflowForSignedSub()
4597 unsigned SignBits = ComputeNumSignBits(N0) + ComputeNumSignBits(N1); in computeOverflowForSignedMul()
4711 unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, unsigned Depth) const { in ComputeNumSignBits() function in SelectionDAG
4720 return ComputeNumSignBits(Op, DemandedElts, Depth); in ComputeNumSignBits()
4723 unsigned SelectionDAG::ComputeNumSignBits(SDValue Op, const APInt &DemandedElts, in ComputeNumSignBits() function in SelectionDAG
[all …]
H A DTargetLowering.cpp841 DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
859 DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
896 unsigned NumSignBits = DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits()
1068 unsigned NumSignedA = DAG.ComputeNumSignBits(ExtOpA, DemandedElts, Depth); in combineShiftToAVG()
1069 unsigned NumSignedB = DAG.ComputeNumSignBits(ExtOpB, DemandedElts, Depth); in combineShiftToAVG()
1958 TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyDemandedBits()
2075 TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyDemandedBits()
2096 if (TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1) >= in SimplifyDemandedBits()
2135 TLO.DAG.ComputeNumSignBits(Op0.getOperand(0), DemandedElts); in SimplifyDemandedBits()
2268 if (BitWidth == TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1)) in SimplifyDemandedBits()
[all …]
H A DLegalizeIntegerTypes.cpp3463 if (DAG.ComputeNumSignBits(LHS) > NumHalfBits && in ExpandIntRes_MINMAX()
3464 DAG.ComputeNumSignBits(RHS) > NumHalfBits) { in ExpandIntRes_MINMAX()
3989 if (DAG.ComputeNumSignBits(N0) > NVT.getScalarSizeInBits()) { in ExpandIntRes_ABS()
H A DDAGCombiner.cpp3287 if (DAG.ComputeNumSignBits(N10) != VT.getScalarSizeInBits()) in foldAddSubMasked1()
7711 Amt.ult(BitWidth - 1) && Amt.uge(BitWidth - DAG.ComputeNumSignBits(X))) in visitAND()
10782 if (DAG.ComputeNumSignBits(N0) == OpSizeInBits) in visitSRA()
11374 N1C->getAPIntValue().ult(DAG.ComputeNumSignBits(N0))) in visitSHLSAT()
13125 if (DAG.ComputeNumSignBits(Cond) != CondVT.getScalarSizeInBits()) in combineVSelectWithAllOnesOrZeros()
13145 assert(DAG.ComputeNumSignBits(Cond) == CondVT.getScalarSizeInBits() && in combineVSelectWithAllOnesOrZeros()
14491 DAG.ComputeNumSignBits(Op) > OpBits - MidBits) { in visitSIGN_EXTEND()
14782 DAG.ComputeNumSignBits(Op) > OpBits - MidBits) { in visitZERO_EXTEND()
15668 unsigned InSignBits = DAG.ComputeNumSignBits(N0.getOperand(0)); in visitSIGN_EXTEND_INREG()
27837 DAG.ComputeNumSignBits(N0) == VT.getScalarSizeInBits()) in visitVECREDUCE()
H A DSelectionDAGISel.cpp900 unsigned NumSignBits = CurDAG->ComputeNumSignBits(Src); in ComputeLiveOutVRegInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h456 unsigned ComputeNumSignBits(const Value *Op,
459 return llvm::ComputeNumSignBits(Op, DL, &AC, CxtI, &DT, Depth);
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp160 if (IsFreeTruncation(Op) && ComputeNumSignBits(Op, *DL, nullptr, Mul) > 16) in tryMAddReplacement()
169 ComputeNumSignBits(Op, *DL, nullptr, Mul) > 16) in tryMAddReplacement()
H A DX86ISelLowering.cpp6416 DAG.ComputeNumSignBits(N0, EltsLHS, Depth + 1) <= NumBitsPerElt) || in getFauxShuffleMask()
6418 DAG.ComputeNumSignBits(N1, EltsRHS, Depth + 1) <= NumBitsPerElt)) in getFauxShuffleMask()
6592 if (DAG.ComputeNumSignBits(Src, DemandedSrcElts) != NumBitsPerSrcElt) in getFauxShuffleMask()
10688 ((DAG.ComputeNumSignBits(Src) > EltSizeInBits) || in lowerShuffleWithVPMOV()
10886 DAG.ComputeNumSignBits(N1) > NumPackedBits) && in matchShuffleWithPACK()
10888 DAG.ComputeNumSignBits(N2) > NumPackedBits)) { in matchShuffleWithPACK()
18518 if (CondEltSize != DAG.ComputeNumSignBits(Cond)) in LowerVSELECT()
21192 (!Subtarget.hasAVX() || DAG.ComputeNumSignBits(In) != 64)) in matchTruncateWithPACK()
21216 unsigned NumSignBits = DAG.ComputeNumSignBits(In); in matchTruncateWithPACK()
21345 if (DAG.ComputeNumSignBits(In) < InVT.getScalarSizeInBits()) { in LowerTruncateVecI1()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelDAGToDAG.cpp342 if (CurDAG->ComputeNumSignBits(N) > (VT.getSizeInBits() - 32)) { in selectSExti32()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp678 ComputeNumSignBits(I->getOperand(0), Q.CxtI, Depth + 1); in SimplifyDemandedUseBits()
760 ComputeNumSignBits(I->getOperand(0), Q.CxtI, Depth + 1); in SimplifyDemandedUseBits()
808 unsigned SignBits = ComputeNumSignBits(I->getOperand(0), Q.CxtI, Depth + 1); in SimplifyDemandedUseBits()
H A DInstCombineCasts.cpp354 ShiftedBits < IC.ComputeNumSignBits(I->getOperand(0), CxtI)) in canEvaluateTruncated()
1512 if (ComputeNumSignBits(Res, &Sext) > DestBitSize - SrcBitSize) in visitSExt()
1526 if (ComputeNumSignBits(X, &Sext) > XBitSize - SrcBitSize) in visitSExt()
H A DInstCombineShifts.cpp1025 ComputeNumSignBits(I.getOperand(0), Q.DL, Q.AC, Q.CxtI, Q.DT)) { in setShiftFlags()
H A DInstCombineAndOrXor.cpp3191 unsigned NumSignBits = ComputeNumSignBits(A); in getSelectCondition()
3207 ComputeNumSignBits(A) == Ty->getScalarSizeInBits()) in getSelectCondition()
H A DInstCombineAddSub.cpp1643 C1->isPowerOf2() && (ComputeNumSignBits(A) > C1->countl_zero())) { in visitAdd()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueTracking.h206 LLVM_ABI unsigned ComputeNumSignBits(const Value *Op, const DataLayout &DL,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp1971 unsigned LHSSignBits = DAG.ComputeNumSignBits(LHS); in LowerDIVREM24()
1975 unsigned RHSSignBits = DAG.ComputeNumSignBits(RHS); in LowerDIVREM24()
2363 DAG.ComputeNumSignBits(LHS) > 32 && in LowerSDIVREM()
2364 DAG.ComputeNumSignBits(RHS) > 32) { in LowerSDIVREM()
5415 unsigned OpSignBits = DAG.ComputeNumSignBits(BitsFrom); in PerformDAGCombine()
6031 unsigned Op0SignBits = DAG.ComputeNumSignBits(Op.getOperand(0), Depth + 1); in ComputeNumSignBitsForTargetNode()
6059 unsigned Tmp2 = DAG.ComputeNumSignBits(Op.getOperand(2), Depth + 1); in ComputeNumSignBitsForTargetNode()
6063 unsigned Tmp1 = DAG.ComputeNumSignBits(Op.getOperand(1), Depth + 1); in ComputeNumSignBitsForTargetNode()
6067 unsigned Tmp0 = DAG.ComputeNumSignBits(Op.getOperand(0), Depth + 1); in ComputeNumSignBitsForTargetNode()
H A DAMDGPUCodeGenPrepare.cpp1201 unsigned RHSSignBits = ComputeNumSignBits(Den, DL, AC, &I); in getDivNumBits()
1207 unsigned LHSSignBits = ComputeNumSignBits(Num, DL, AC, &I); in getDivNumBits()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp621 unsigned LHSSB = DAG.ComputeNumSignBits(Mul.getOperand(0)); in TryExpandADDWithMul()
622 unsigned RHSSB = DAG.ComputeNumSignBits(Mul.getOperand(1)); in TryExpandADDWithMul()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h2179 LLVM_ABI unsigned ComputeNumSignBits(SDValue Op, unsigned Depth = 0) const;
2189 LLVM_ABI unsigned ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp10517 ComputeNumSignBits(VL0->getOperand(0), *DL, AC, nullptr, DT); in buildTreeRec()
10561 ComputeNumSignBits(VL0->getOperand(0), *DL, AC, nullptr, DT); in buildTreeRec()
10566 ComputeNumSignBits(VL0->getOperand(1), *DL, AC, nullptr, DT); in buildTreeRec()
20122 unsigned NumSignBits = ComputeNumSignBits(V, *DL, AC, nullptr, DT); in collectValuesToDemote()
20359 ComputeNumSignBits(I->getOperand(0), *DL, AC, nullptr, DT); in collectValuesToDemote()
20423 ComputeNumSignBits(I->getOperand(0), *DL, AC, nullptr, DT); in collectValuesToDemote()
20425 ComputeNumSignBits(I->getOperand(1), *DL, AC, nullptr, DT); in collectValuesToDemote()
20444 ComputeNumSignBits(I->getOperand(0), *DL, AC, nullptr, DT); in collectValuesToDemote()
20630 unsigned NumSignBits = ComputeNumSignBits(Root, *DL, AC, nullptr, DT); in computeMinimumValueSizes()
20721 unsigned NumSignBits = ComputeNumSignBits(V, *DL, AC, nullptr, DT); in computeMinimumValueSizes()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp4662 else if (DAG.ComputeNumSignBits(Op1) > 32) in lowerSDIVREM()
9379 unsigned LHS = DAG.ComputeNumSignBits(Op.getOperand(OpNo), Src0DemE, Depth + 1); in computeNumSignBitsBinOp()
9382 unsigned RHS = DAG.ComputeNumSignBits(Op.getOperand(OpNo + 1), Src1DemE, Depth + 1); in computeNumSignBitsBinOp()
9432 unsigned Tmp = DAG.ComputeNumSignBits(PackedOp, SrcDemE, Depth + 1); in ComputeNumSignBitsForTargetNode()

12