Home
last modified time | relevance | path

Searched refs:DivC (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp792 const APInt *DivC; in FoldShiftByConstant() local
794 match(Op0, m_SDiv(m_Value(X), m_APInt(DivC))) && !DivC->isZero() && in FoldShiftByConstant()
795 !DivC->isMinSignedValue()) { in FoldShiftByConstant()
796 Constant *NegDivC = ConstantInt::get(Ty, -(*DivC)); in FoldShiftByConstant()
798 DivC->isNegative() ? ICmpInst::ICMP_SGE : ICmpInst::ICMP_SLE; in FoldShiftByConstant()
H A DInstCombineAddSub.cpp1272 const APInt *DivC; in foldAddToAshr() local
1273 if (!match(Add.getOperand(0), m_SDiv(m_Value(X), m_Power2(DivC))) || in foldAddToAshr()
1274 DivC->isNegative()) in foldAddToAshr()
1297 ? (*MaskC == (SMin | (*DivC - 1))) in foldAddToAshr()
1298 : (*DivC == 2 && *MaskC == SMin + 1); in foldAddToAshr()
1304 X, ConstantInt::get(Add.getType(), DivC->exactLogBase2())); in foldAddToAshr()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1194 const APInt *DivC; in simplifyDiv() local
1195 if (IsExact && match(Op1, m_APInt(DivC))) { in simplifyDiv()
1199 if (DivC->countr_zero()) { in simplifyDiv()
1201 if (KnownOp0.countMaxTrailingZeros() < DivC->countr_zero()) in simplifyDiv()
1209 if (!DivC->isPowerOf2() && in simplifyDiv()