Searched refs:MulC (Results 1 – 8 of 8) sorted by relevance
| /openbsd/src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| D | InstCombineShifts.cpp | 1328 const APInt *MulC; in visitLShr() local 1329 if (match(Op0, m_NUWMul(m_Value(X), m_APInt(MulC)))) { in visitLShr() 1334 if (BitWidth > 2 && ShAmtC * 2 == BitWidth && (*MulC - 1).isPowerOf2() && in visitLShr() 1335 MulC->logBase2() == ShAmtC) in visitLShr() 1336 return BinaryOperator::CreateAnd(X, ConstantInt::get(Ty, *MulC - 2)); in visitLShr() 1342 APInt NewMulC = MulC->lshr(ShAmtC); in visitLShr() 1345 if (MulC->eq(NewMulC.shl(ShAmtC))) { in visitLShr()
|
| D | InstCombineCompares.cpp | 1958 const APInt *MulC; in foldICmpMulConstant() local 1959 if (!match(Mul->getOperand(1), m_APInt(MulC))) in foldICmpMulConstant() 1967 if (MulC->isNegative()) in foldICmpMulConstant() 1972 if (MulC->isZero() || (!Mul->hasNoSignedWrap() && !Mul->hasNoUnsignedWrap())) in foldICmpMulConstant() 1979 if (Mul->hasNoSignedWrap() && C.srem(*MulC).isZero()) { in foldICmpMulConstant() 1980 Constant *NewC = ConstantInt::get(MulTy, C.sdiv(*MulC)); in foldICmpMulConstant() 1984 if (Mul->hasNoUnsignedWrap() && C.urem(*MulC).isZero()) { in foldICmpMulConstant() 1985 Constant *NewC = ConstantInt::get(MulTy, C.udiv(*MulC)); in foldICmpMulConstant() 1997 if (C.isMinSignedValue() && MulC->isAllOnes()) in foldICmpMulConstant() 1999 if (MulC->isNegative()) in foldICmpMulConstant() [all …]
|
| D | InstCombineMulDivRem.cpp | 289 Constant *MulC; in visitMul() local 290 if (match(Op1, m_ImmConstant(MulC))) { in visitMul() 299 Value *NewC = Builder.CreateMul(C1, MulC); in visitMul() 303 Value *NewMul = Builder.CreateMul(X, MulC); in visitMul()
|
| D | InstCombineAddSub.cpp | 1772 Constant *MulC; in visitFAdd() local 1773 if (match(&I, m_c_FAdd(m_FMul(m_Value(X), m_ImmConstant(MulC)), in visitFAdd() 1776 Instruction::FAdd, MulC, ConstantFP::get(I.getType(), 1.0), DL)) in visitFAdd()
|
| /openbsd/src/gnu/llvm/llvm/lib/Analysis/ |
| D | InstructionSimplify.cpp | 3068 const APInt *MulC; in simplifyICmpWithConstant() local 3070 ((match(LHS, m_NUWMul(m_Value(), m_APIntAllowUndef(MulC))) && in simplifyICmpWithConstant() 3071 *MulC != 0 && C->urem(*MulC) != 0) || in simplifyICmpWithConstant() 3072 (match(LHS, m_NSWMul(m_Value(), m_APIntAllowUndef(MulC))) && in simplifyICmpWithConstant() 3073 *MulC != 0 && C->srem(*MulC) != 0))) in simplifyICmpWithConstant()
|
| /openbsd/src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| D | TargetLowering.cpp | 2663 ConstantSDNode *MulC = isConstOrConstSplat(Mul.getOperand(1)); in SimplifyDemandedBits() local 2664 if (MulC && !MulC->isOpaque() && !MulC->isZero() && in SimplifyDemandedBits() 2665 !MulC->getAPIntValue().isPowerOf2()) { in SimplifyDemandedBits() 2666 APInt UnmaskedC = MulC->getAPIntValue() | HighMask; in SimplifyDemandedBits()
|
| D | DAGCombiner.cpp | 4109 APInt MulC = ConstValue1.abs(); in visitMUL() local 4111 unsigned TZeros = MulC == 2 ? 0 : MulC.countTrailingZeros(); in visitMUL() 4112 MulC.lshrInPlace(TZeros); in visitMUL() 4113 if ((MulC - 1).isPowerOf2()) in visitMUL() 4115 else if ((MulC + 1).isPowerOf2()) in visitMUL() 4120 MathOp == ISD::ADD ? (MulC - 1).logBase2() : (MulC + 1).logBase2(); in visitMUL()
|
| /openbsd/src/gnu/llvm/llvm/lib/Target/X86/ |
| D | X86ISelLowering.cpp | 5872 APInt MulC; in decomposeMulByConstant() local 5873 if (!ISD::isConstantSplatVector(C.getNode(), MulC)) in decomposeMulByConstant() 5896 return (MulC + 1).isPowerOf2() || (MulC - 1).isPowerOf2() || in decomposeMulByConstant() 5897 (1 - MulC).isPowerOf2() || (-(MulC + 1)).isPowerOf2(); in decomposeMulByConstant()
|