Lines Matching refs:Quotient
93 static bool IsMultiple(const APInt &C1, const APInt &C2, APInt &Quotient, in IsMultiple() argument
100 APInt::sdivrem(C1, C2, Quotient, Remainder); in IsMultiple()
102 APInt::udivrem(C1, C2, Quotient, Remainder); in IsMultiple()
811 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms() local
814 if (IsMultiple(*C2, *C1, Quotient, IsSigned)) { in commonIDivTransforms()
816 I.getOpcode(), X, ConstantInt::get(X->getType(), Quotient)); in commonIDivTransforms()
822 if (IsMultiple(*C1, *C2, Quotient, IsSigned)) { in commonIDivTransforms()
824 Instruction::Mul, X, ConstantInt::get(X->getType(), Quotient)); in commonIDivTransforms()
837 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms() local
842 if (IsMultiple(*C2, C1Shifted, Quotient, IsSigned)) { in commonIDivTransforms()
844 I.getOpcode(), X, ConstantInt::get(X->getType(), Quotient)); in commonIDivTransforms()
850 if (IsMultiple(C1Shifted, *C2, Quotient, IsSigned)) { in commonIDivTransforms()
852 Instruction::Mul, X, ConstantInt::get(X->getType(), Quotient)); in commonIDivTransforms()