Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:Op1

24   Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1);
32 if (SelectInst *SI = dyn_cast<SelectInst>(Op1))
36 if (ConstantInt *CUI = dyn_cast<ConstantInt>(Op1))
44 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) {
48 Op1->getName());
312 Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, ConstantInt *Op1,
320 CanEvaluateShifted(Op0, Op1->getZExtValue(), isLeftShift, *this)) {
325 GetShiftedValue(Op0, Op1->getZExtValue(), isLeftShift, *this));
336 if (Op1->uge(TypeBits)) {
349 ConstantExpr::getShl(BOOp, Op1));
370 Constant *ShAmt = ConstantExpr::getZExt(Op1, TrOp->getType());
387 MaskV <<= Op1->getZExtValue();
390 MaskV = MaskV.lshr(Op1->getZExtValue());
418 m_Specific(Op1)))) {
420 Builder->CreateShl(Op0BO->getOperand(0), Op1, Op0BO->getName());
424 uint32_t Op1Val = Op1->getLimitedValue(TypeBits);
433 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))),
436 Builder->CreateShl(Op0BO->getOperand(0), Op1,
439 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1),
450 m_Specific(Op1)))) {
452 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName());
456 uint32_t Op1Val = Op1->getLimitedValue(TypeBits);
465 m_ConstantInt(CC))) && V2 == Op1) {
467 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName());
469 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1),
510 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1);
513 Builder->CreateBinOp(I.getOpcode(), Op0BO->getOperand(0), Op1);
544 uint32_t ShiftAmt2 = Op1->getLimitedValue(TypeBits);
723 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1);
725 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
763 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1);
765 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
771 if (match(Op0, m_Shl(m_Value(X), m_Specific(Op1)))) {
801 return BinaryOperator::CreateLShr(Op0, Op1);