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_Shr(m_Value(V1), m_Specific(Op1)),
437 Builder->CreateShl(Op0BO->getOperand(0), Op1,
440 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1),
451 m_Specific(Op1)))) {
453 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName());
457 uint32_t Op1Val = Op1->getLimitedValue(TypeBits);
466 m_ConstantInt(CC))) && V2 == Op1 &&
470 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName());
472 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1),
513 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1);
516 Builder->CreateBinOp(I.getOpcode(), Op0BO->getOperand(0), Op1);
547 uint32_t ShiftAmt2 = Op1->getLimitedValue(TypeBits);
726 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1);
728 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
766 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1);
768 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) {
774 if (match(Op0, m_Shl(m_Value(X), m_Specific(Op1)))) {
804 return BinaryOperator::CreateLShr(Op0, Op1);