• Home
  • Raw
  • Download

Lines Matching refs:IsSigned

81                               bool IsSigned) {  in MultiplyOverflows()  argument
83 if (IsSigned) in MultiplyOverflows()
93 bool IsSigned) { in IsMultiple() argument
102 if (IsSigned && C1.isMinSignedValue() && C2.isAllOnesValue()) in IsMultiple()
105 APInt Remainder(C1.getBitWidth(), /*Val=*/0ULL, IsSigned); in IsMultiple()
106 if (IsSigned) in IsMultiple()
822 bool IsSigned = I.getOpcode() == Instruction::SDiv; in commonIDivTransforms() local
825 if ((IsSigned && match(LHS, m_SDiv(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
826 (!IsSigned && match(LHS, m_UDiv(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
827 APInt Product(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms()
828 if (!MultiplyOverflows(*C1, *C2, Product, IsSigned)) in commonIDivTransforms()
833 if ((IsSigned && match(LHS, m_NSWMul(m_Value(X), m_APInt(C1)))) || in commonIDivTransforms()
834 (!IsSigned && match(LHS, m_NUWMul(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
835 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms()
838 if (IsMultiple(*C2, *C1, Quotient, IsSigned)) { in commonIDivTransforms()
846 if (IsMultiple(*C1, *C2, Quotient, IsSigned)) { in commonIDivTransforms()
850 !IsSigned && in commonIDivTransforms()
858 if ((IsSigned && match(LHS, m_NSWShl(m_Value(X), m_APInt(C1))) && in commonIDivTransforms()
860 (!IsSigned && match(LHS, m_NUWShl(m_Value(X), m_APInt(C1))))) { in commonIDivTransforms()
861 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms()
866 if (IsMultiple(*C2, C1Shifted, Quotient, IsSigned)) { in commonIDivTransforms()
874 if (IsMultiple(C1Shifted, *C2, Quotient, IsSigned)) { in commonIDivTransforms()
878 !IsSigned && in commonIDivTransforms()