/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineNegator.cpp | 281 if (auto *Op1C = dyn_cast<Constant>(I->getOperand(1))) { in visitImpl() local 282 if (!Op1C->containsUndefOrPoisonElement() && in visitImpl() 283 Op1C->isNotMinSignedValue() && Op1C->isNotOneValue()) { in visitImpl() 285 Builder.CreateSDiv(I->getOperand(0), ConstantExpr::getNeg(Op1C), in visitImpl() 410 Constant *Op1C; in visitImpl() local 411 if (!match(I->getOperand(1), m_ImmConstant(Op1C)) || !IsTrulyNegation) in visitImpl() 415 Builder.CreateShl(Constant::getAllOnesValue(Op1C->getType()), Op1C), in visitImpl()
|
H A D | InstCombineMulDivRem.cpp | 269 auto *Op1C = cast<Constant>(Op1); in visitMul() local 271 I, Builder.CreateMul(NegOp0, ConstantExpr::getNeg(Op1C), "", in visitMul() 273 HasNSW && Op1C->isNotMinSignedValue())); in visitMul() 347 Constant *Op1C; in visitMul() local 348 if (match(Op0, m_Neg(m_Value(X))) && match(Op1, m_Constant(Op1C))) in visitMul() 349 return BinaryOperator::CreateMul(X, ConstantExpr::getNeg(Op1C)); in visitMul() 1629 const APInt *Op1C; in visitSDiv() local 1630 if (match(Op1, m_APInt(Op1C))) { in visitSDiv() 1637 Op1C->getSignificantBits()) { in visitSDiv() 1652 if (!Op1C->isMinSignedValue() && match(Op0, m_NSWNeg(m_Value(X)))) { in visitSDiv() [all …]
|
H A D | InstCombineAddSub.cpp | 813 Constant *Op1C; in foldNoWrapAdd() local 814 if (!match(Op1, m_Constant(Op1C))) in foldNoWrapAdd() 841 Value *NewC = Builder.CreateAdd(WideC, Op1C); in foldNoWrapAdd() 849 Value *NewC = Builder.CreateAdd(WideC, Op1C); in foldNoWrapAdd() 859 Constant *Op1C; in foldAddWithConstant() local 860 if (!match(Op1, m_ImmConstant(Op1C))) in foldAddWithConstant() 871 return BinaryOperator::CreateSub(ConstantExpr::getAdd(Op00C, Op1C), X); in foldAddWithConstant() 883 return SelectInst::Create(X, InstCombiner::AddOne(Op1C), Op1); in foldAddWithConstant() 887 return SelectInst::Create(X, InstCombiner::SubOne(Op1C), Op1); in foldAddWithConstant() 892 auto *COne = ConstantInt::get(Op1C->getType(), 1); in foldAddWithConstant() [all …]
|
H A D | InstCombineShifts.cpp | 805 const APInt *Op1C; in FoldShiftByConstant() local 806 if (!match(C1, m_APInt(Op1C))) in FoldShiftByConstant() 809 assert(!Op1C->uge(TypeBits) && in FoldShiftByConstant() 815 canEvaluateShifted(Op0, Op1C->getZExtValue(), IsLeftShift, *this, &I)) { in FoldShiftByConstant() 822 I, getShiftedValue(Op0, Op1C->getZExtValue(), IsLeftShift, *this, DL)); in FoldShiftByConstant()
|
H A D | InstCombineCasts.cpp | 1315 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in transformSExtICmp() local 1320 Cmp->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ in transformSExtICmp() 1328 if (!Op1C->isZero() && Op1C->getValue() != KnownZeroMask) { in transformSExtICmp() 1335 if (!Op1C->isZero() == (Pred == ICmpInst::ICMP_NE)) { in transformSExtICmp()
|
H A D | InstCombineCompares.cpp | 6864 auto *Op1C = dyn_cast<Constant>(Op1); in canonicalizeCmpWithConstant() local 6865 if (!Op1C) in canonicalizeCmpWithConstant() 6869 InstCombiner::getFlippedStrictnessPredicateAndConstant(Pred, Op1C); in canonicalizeCmpWithConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 3617 ConstantFP *Op1C = dyn_cast<ConstantFP>(Call->getArgOperand(1)); in isMathLibCallNoop() local 3618 if (Op0C && Op1C) { in isMathLibCallNoop() 3620 const APFloat &Op1 = Op1C->getValueAPF(); in isMathLibCallNoop() 3630 if (Ty == Op1C->getType()) in isMathLibCallNoop()
|
H A D | InstructionSimplify.cpp | 1099 auto *Op1C = dyn_cast<Constant>(Op1); in simplifyDivRem() local 1101 if (Op1C && VTy) { in simplifyDivRem() 1104 Constant *Elt = Op1C->getAggregateElement(i); in simplifyDivRem()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FastISel.cpp | 1415 if (const ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in X86FastEmitCompare() local 1416 if (unsigned CompareImmOpc = X86ChooseCmpImmediateOpcode(VT, Op1C)) { in X86FastEmitCompare() 1419 .addImm(Op1C->getSExtValue()); in X86FastEmitCompare()
|
H A D | X86ISelLowering.cpp | 23887 if (auto *Op1C = dyn_cast<ConstantSDNode>(Op1)) { in LowerSETCC() local 23888 const APInt &Op1Val = Op1C->getAPIntValue(); in LowerSETCC()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 536 auto *Op1C = dyn_cast<ConstantSDNode>(Op.getOperand(1)); in ShrinkDemandedConstant() local 537 if (!Op1C || Op1C->isOpaque()) in ShrinkDemandedConstant() 541 const APInt &C = Op1C->getAPIntValue(); in ShrinkDemandedConstant()
|