| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 372 static unsigned ComputeNumSignBits(const Value *V, unsigned Depth, in ComputeNumSignBits() function 382 return ComputeNumSignBits(V, DemandedElts, Depth, Q); in ComputeNumSignBits() 389 return ::ComputeNumSignBits( in ComputeNumSignBits() 2957 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl() 2988 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl() 3016 Tmp = ComputeNumSignBits(U->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl() 3034 Tmp = ComputeNumSignBits(U->getOperand(1), Depth + 1, Q); in ComputeNumSignBitsImpl() 4795 if (ComputeNumSignBits(LHS, DL, 0, AC, CxtI, DT) > 1 && in computeOverflowForSignedAdd() 4796 ComputeNumSignBits(RHS, DL, 0, AC, CxtI, DT) > 1) in computeOverflowForSignedAdd() 4864 if (ComputeNumSignBits(LHS, DL, 0, AC, CxtI, DT) > 1 && in computeOverflowForSignedSub() [all …]
|
| H A D | IVDescriptors.cpp | 138 auto NumSignBits = ComputeNumSignBits(Exit, DL, 0, AC, nullptr, DT); in computeRecurrenceType()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/ |
| H A D | InstCombiner.h | 477 unsigned ComputeNumSignBits(const Value *Op, unsigned Depth = 0, 479 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT);
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86PartialReduction.cpp | 117 ComputeNumSignBits(Op, *DL, 0, nullptr, Mul) > 16) in tryMAddReplacement() 126 ComputeNumSignBits(Op, *DL, 0, nullptr, Mul) > 16) in tryMAddReplacement()
|
| H A D | X86ISelLowering.cpp | 11861 DAG.ComputeNumSignBits(N1) > NumPackedBits) && in matchShuffleWithPACK() 11863 DAG.ComputeNumSignBits(N2) > NumPackedBits)) { in matchShuffleWithPACK() 18643 if (CondEltSize != DAG.ComputeNumSignBits(Cond)) in LowerVSELECT() 35065 return DAG.ComputeNumSignBits(Src, Depth + 1); in ComputeNumSignBitsForTargetNode() 40671 if (DAG.ComputeNumSignBits(Match) != BitWidth) in combinePredicateReduction() 42671 if (DAG.ComputeNumSignBits(BC) == EltBits) { in combinePTESTCC() 42790 bool SignExt0 = DAG.ComputeNumSignBits(VecOp0) > 8; in combineSetCCMOVMSK() 43116 SignBits[i] = DAG.ComputeNumSignBits(Opd); in canReduceVMulWidth() 43396 DAG.ComputeNumSignBits(N1) > 32) { in combineMulToPMULDQ() 44639 if (EltBitWidth != DAG.ComputeNumSignBits(Op0)) in combineAndMaskToShift() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 3668 return ComputeNumSignBits(Op, DemandedElts, Depth); in ComputeNumSignBits() 3708 Tmp2 = ComputeNumSignBits(SrcOp, Depth + 1); in ComputeNumSignBits() 3765 return ComputeNumSignBits(N0, DemandedElts, Depth + 1); in ComputeNumSignBits() 3780 Tmp = ComputeNumSignBits(N0, SrcDemandedElts, Depth + 1); in ComputeNumSignBits() 3814 return ComputeNumSignBits(Src, DemandedSrcElts, Depth+1) + Tmp; in ComputeNumSignBits() 4054 Tmp2 = ComputeNumSignBits(InVal, Depth + 1); in ComputeNumSignBits() 4058 Tmp2 = ComputeNumSignBits(InVec, DemandedVecElts, Depth + 1); in ComputeNumSignBits() 4089 return ComputeNumSignBits(InVec, DemandedSrcElts, Depth + 1); in ComputeNumSignBits() 4100 return ComputeNumSignBits(Src, DemandedSrcElts, Depth + 1); in ComputeNumSignBits() 4133 Tmp = ComputeNumSignBits(Sub, DemandedSubElts, Depth + 1); in ComputeNumSignBits() [all …]
|
| H A D | TargetLowering.cpp | 755 DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits() 791 unsigned NumSignBits = DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyMultipleUseDemandedBits() 1533 TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyDemandedBits() 1600 if (TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1) >= in SimplifyDemandedBits() 1722 if (BitWidth == TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1)) in SimplifyDemandedBits() 1799 TLO.DAG.ComputeNumSignBits(Op0, DemandedElts, Depth + 1); in SimplifyDemandedBits() 6354 DAG.ComputeNumSignBits(LHS) > InnerBitSize && in expandMUL_LOHI() 6355 DAG.ComputeNumSignBits(RHS) > InnerBitSize) { in expandMUL_LOHI() 8283 unsigned LHSLead = Signed ? DAG.ComputeNumSignBits(LHS) - 1 in expandFixedPointDiv()
|
| H A D | DAGCombiner.cpp | 2638 if (DAG.ComputeNumSignBits(N1.getOperand(0)) != VT.getScalarSizeInBits()) in foldAddSubMasked1() 4747 unsigned SignBits = DAG.ComputeNumSignBits(N0); in visitMULO() 4749 SignBits += DAG.ComputeNumSignBits(N1); in visitMULO() 8561 if (DAG.ComputeNumSignBits(N0) == OpSizeInBits) in visitSRA() 8593 if (DAG.ComputeNumSignBits(N0.getOperand(0)) > N1C->getZExtValue()) in visitSRA() 11071 unsigned NumSignBits = DAG.ComputeNumSignBits(Op); in visitSIGN_EXTEND() 12018 if (DAG.ComputeNumSignBits(N0) >= (VTBits - ExtVTBits + 1)) in visitSIGN_EXTEND_INREG() 12035 (N00Bits - DAG.ComputeNumSignBits(N00)) < ExtVTBits) && in visitSIGN_EXTEND_INREG() 12054 (N00Bits - DAG.ComputeNumSignBits(N00, DemandedSrcElts)) < in visitSIGN_EXTEND_INREG() 12092 unsigned InSignBits = DAG.ComputeNumSignBits(N0.getOperand(0)); in visitSIGN_EXTEND_INREG() [all …]
|
| H A D | SelectionDAGISel.cpp | 761 unsigned NumSignBits = CurDAG->ComputeNumSignBits(Src); in ComputeLiveOutVRegInfo()
|
| H A D | LegalizeIntegerTypes.cpp | 1609 OpL.getScalarValueSizeInBits() - DAG.ComputeNumSignBits(OpL) + 1; in PromoteSetCCOperands() 1611 OpR.getScalarValueSizeInBits() - DAG.ComputeNumSignBits(OpR) + 1; in PromoteSetCCOperands()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUCodeGenPrepare.cpp | 454 return ScalarSize - ComputeNumSignBits(Op, *DL, 0, AC); in numBitsSigned() 867 unsigned LHSSignBits = ComputeNumSignBits(Num, DL, 0, AC, &I); in getDivNumBits() 871 unsigned RHSSignBits = ComputeNumSignBits(Den, DL, 0, AC, &I); in getDivNumBits()
|
| H A D | AMDGPUISelLowering.cpp | 58 return VT.getSizeInBits() - DAG.ComputeNumSignBits(Op); in numBitsSigned() 1720 unsigned LHSSignBits = DAG.ComputeNumSignBits(LHS); in LowerDIVREM24() 1724 unsigned RHSSignBits = DAG.ComputeNumSignBits(RHS); in LowerDIVREM24() 2109 DAG.ComputeNumSignBits(LHS) > 32 && in LowerSDIVREM() 2110 DAG.ComputeNumSignBits(RHS) > 32) { in LowerSDIVREM() 4138 unsigned OpSignBits = DAG.ComputeNumSignBits(BitsFrom); in PerformDAGCombine() 4674 unsigned Op0SignBits = DAG.ComputeNumSignBits(Op.getOperand(0), Depth + 1); in ComputeNumSignBitsForTargetNode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineInternal.h | 483 unsigned ComputeNumSignBits(const Value *Op, unsigned Depth = 0, 485 return llvm::ComputeNumSignBits(Op, DL, Depth, &AC, CxtI, &DT);
|
| H A D | InstCombineCasts.cpp | 456 ShiftedBits < IC.ComputeNumSignBits(I->getOperand(0), 0, CxtI)) in canEvaluateTruncated() 1537 if (ComputeNumSignBits(Res, 0, &CI) > DestBitSize - SrcBitSize) in visitSExt() 1551 if (ComputeNumSignBits(X, 0, &CI) > XBitSize - SrcBitSize) in visitSExt()
|
| H A D | InstCombineSimplifyDemanded.cpp | 649 unsigned SignBits = ComputeNumSignBits(I->getOperand(0), Depth + 1, CxtI); in SimplifyDemandedUseBits()
|
| H A D | InstCombineShifts.cpp | 995 if (!I.hasNoSignedWrap() && ComputeNumSignBits(Op0, 0, &I) > ShAmt) { in visitShl()
|
| H A D | InstCombineCompares.cpp | 1274 if (IC.ComputeNumSignBits(A, 0, &I) < NeededSignBits || in processUGT_ADDCST_ADD() 1275 IC.ComputeNumSignBits(B, 0, &I) < NeededSignBits) in processUGT_ADDCST_ADD()
|
| H A D | InstCombineAndOrXor.cpp | 2294 if (ComputeNumSignBits(A) != Ty->getScalarSizeInBits()) in getSelectCondition()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueTracking.h | 200 unsigned ComputeNumSignBits(const Value *Op, const DataLayout &DL,
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | SelectionDAG.h | 1759 unsigned ComputeNumSignBits(SDValue Op, unsigned Depth = 0) const; 1769 unsigned ComputeNumSignBits(SDValue Op, const APInt &DemandedElts,
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 656 unsigned LHSSB = DAG.ComputeNumSignBits(Mul.getOperand(0)); in TryExpandADDWithMul() 657 unsigned RHSSB = DAG.ComputeNumSignBits(Mul.getOperand(1)); in TryExpandADDWithMul()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelDAGToDAG.cpp | 1473 if (CurDAG->ComputeNumSignBits(N) > (VT.getSizeInBits() - 32)) { in selectSExti32()
|
| H A D | RISCVISelLowering.cpp | 4958 bool LHSIsS = DAG.ComputeNumSignBits(LHS) > XLen; in ReplaceNodeResults() 4959 bool RHSIsS = DAG.ComputeNumSignBits(RHS) > XLen; in ReplaceNodeResults() 6650 unsigned Tmp = DAG.ComputeNumSignBits(Op.getOperand(0), Depth + 1); in ComputeNumSignBitsForTargetNode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelLowering.cpp | 3633 else if (DAG.ComputeNumSignBits(Op1) > 32) in lowerSDIVREM() 6974 unsigned LHS = DAG.ComputeNumSignBits(Op.getOperand(OpNo), Src0DemE, Depth + 1); in computeNumSignBitsBinOp() 6977 unsigned RHS = DAG.ComputeNumSignBits(Op.getOperand(OpNo + 1), Src1DemE, Depth + 1); in computeNumSignBitsBinOp() 7027 unsigned Tmp = DAG.ComputeNumSignBits(PackedOp, SrcDemE, Depth + 1); in ComputeNumSignBitsForTargetNode()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 4894 unsigned ExtraSignBits = ComputeNumSignBits(Cond, DL, 0, AC, SI) - 1; in eliminateDeadSwitchCases()
|