Home
last modified time | relevance | path

Searched refs:SignBits (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp642 unsigned SignBits = in SimplifyDemandedUseBits() local
644 if (SignBits >= NumHiDemandedBits) in SimplifyDemandedUseBits()
684 unsigned SignBits = ComputeNumSignBits(I->getOperand(0), Depth + 1, CxtI); in SimplifyDemandedUseBits() local
689 if (SignBits >= NumHiDemandedBits) in SimplifyDemandedUseBits()
725 BitWidth, std::min(SignBits + ShiftAmt - 1, BitWidth))); in SimplifyDemandedUseBits()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp1590 unsigned SignBits = std::min(LHSSignBits, RHSSignBits); in LowerDIVREM24() local
1591 unsigned DivBits = BitSize - SignBits; in LowerDIVREM24()
4071 unsigned SignBits = Signed ? (32 - WidthVal + 1) : (32 - WidthVal); in PerformDAGCombine() local
4074 if (OpSignBits >= SignBits) in PerformDAGCombine()
4530 unsigned SignBits = 32 - MaxValBits + 1; in computeKnownBitsForTargetNode() local
4539 Known.Zero.setHighBits(SignBits); in computeKnownBitsForTargetNode()
4541 Known.One.setHighBits(SignBits); in computeKnownBitsForTargetNode()
4639 unsigned SignBits = 32 - Width->getZExtValue() + 1; in ComputeNumSignBitsForTargetNode() local
4641 return SignBits; in ComputeNumSignBitsForTargetNode()
4645 return std::max(SignBits, Op0SignBits); in ComputeNumSignBitsForTargetNode()
H A DAMDGPUCodeGenPrepare.cpp895 unsigned SignBits = std::min(LHSSignBits, RHSSignBits); in getDivNumBits() local
896 unsigned DivBits = Num->getType()->getScalarSizeInBits() - SignBits; in getDivNumBits()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueTracking.cpp427 unsigned SignBits = ComputeNumSignBits(V, DL, Depth, AC, CxtI, DT); in ComputeMaxSignificantBits() local
428 return V->getType()->getScalarSizeInBits() - SignBits + 1; in ComputeMaxSignificantBits()
4872 unsigned SignBits = ComputeNumSignBits(LHS, DL, 0, AC, CxtI, DT) + in computeOverflowForSignedMul() local
4877 if (SignBits > BitWidth + 1) in computeOverflowForSignedMul()
4885 if (SignBits == BitWidth + 1) { in computeOverflowForSignedMul()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3759 unsigned SignBits = ComputeNumSignBits(Op.getOperand(0), Depth + 1); in computeKnownBits() local
3760 Known.Zero.setHighBits(std::min(SignBits, ValueLow.getNumSignBits())); in computeKnownBits()
4505 unsigned SignBits = ComputeNumSignBits(Op, Depth); in ComputeMaxSignificantBits() local
4506 return Op.getScalarValueSizeInBits() - SignBits + 1; in ComputeMaxSignificantBits()
4512 unsigned SignBits = ComputeNumSignBits(Op, DemandedElts, Depth); in ComputeMaxSignificantBits() local
4513 return Op.getScalarValueSizeInBits() - SignBits + 1; in ComputeMaxSignificantBits()
H A DDAGCombiner.cpp5017 unsigned SignBits = DAG.ComputeNumSignBits(N0); in visitMULO() local
5018 if (SignBits > 1) in visitMULO()
5019 SignBits += DAG.ComputeNumSignBits(N1); in visitMULO()
5020 if (SignBits > VT.getScalarSizeInBits() + 1) in visitMULO()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp32645 SDValue SignBits = DAG.getSetCC(dl, MVT::v4i32, Zero, In, ISD::SETGT); in ReplaceNodeResults() local
32649 SDValue Lo = DAG.getVectorShuffle(MVT::v4i32, dl, In, SignBits, in ReplaceNodeResults()
32652 SDValue Hi = DAG.getVectorShuffle(MVT::v4i32, dl, In, SignBits, in ReplaceNodeResults()
45992 unsigned SignBits[2] = {1, 1}; in canReduceVMulWidth() local
45997 SignBits[i] = DAG.ComputeNumSignBits(Opd); in canReduceVMulWidth()
46002 unsigned MinSignBits = std::min(SignBits[0], SignBits[1]); in canReduceVMulWidth()