Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp773 const APInt *DivC; in FoldShiftByConstant() local
775 match(Op0, m_SDiv(m_Value(X), m_APInt(DivC))) && !DivC->isZero() && in FoldShiftByConstant()
776 !DivC->isMinSignedValue()) { in FoldShiftByConstant()
777 Constant *NegDivC = ConstantInt::get(Ty, -(*DivC)); in FoldShiftByConstant()
779 DivC->isNegative() ? ICmpInst::ICMP_SGE : ICmpInst::ICMP_SLE; in FoldShiftByConstant()
H A DInstCombineAddSub.cpp1230 const APInt *DivC; in foldAddToAshr() local
1231 if (!match(Add.getOperand(0), m_SDiv(m_Value(X), m_Power2(DivC))) || in foldAddToAshr()
1232 DivC->isNegative()) in foldAddToAshr()
1255 ? (*MaskC == (SMin | (*DivC - 1))) in foldAddToAshr()
1256 : (*DivC == 2 && *MaskC == SMin + 1); in foldAddToAshr()
1262 X, ConstantInt::get(Add.getType(), DivC->exactLogBase2())); in foldAddToAshr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp1193 const APInt *DivC; in simplifyDiv() local
1194 if (IsExact && match(Op1, m_APInt(DivC))) { in simplifyDiv()
1198 if (DivC->countr_zero()) { in simplifyDiv()
1200 if (KnownOp0.countMaxTrailingZeros() < DivC->countr_zero()) in simplifyDiv()
1208 if (!DivC->isPowerOf2() && in simplifyDiv()