Lines Matching refs:Op1

26   Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1);  in commonShiftTransforms()  local
34 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) in commonShiftTransforms()
38 if (Constant *CUI = dyn_cast<Constant>(Op1)) in commonShiftTransforms()
46 if (Op1->hasOneUse() && match(Op1, m_SRem(m_Value(A), m_Power2(B)))) { in commonShiftTransforms()
50 Op1->getName()); in commonShiftTransforms()
321 Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, Constant *Op1, in FoldShiftByConstant() argument
326 if (ConstantDataVector *CV = dyn_cast<ConstantDataVector>(Op1)) in FoldShiftByConstant()
328 else if (ConstantVector *CV = dyn_cast<ConstantVector>(Op1)) in FoldShiftByConstant()
331 COp1 = dyn_cast<ConstantInt>(Op1); in FoldShiftByConstant()
359 ConstantExpr::getShl(BOOp, Op1)); in FoldShiftByConstant()
428 m_Specific(Op1)))) { in FoldShiftByConstant()
430 Builder->CreateShl(Op0BO->getOperand(0), Op1, Op0BO->getName()); in FoldShiftByConstant()
447 m_And(m_OneUse(m_Shr(m_Value(V1), m_Specific(Op1))), in FoldShiftByConstant()
450 Builder->CreateShl(Op0BO->getOperand(0), Op1, in FoldShiftByConstant()
453 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
464 m_Specific(Op1)))) { in FoldShiftByConstant()
466 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName()); in FoldShiftByConstant()
483 m_ConstantInt(CC))) && V2 == Op1) { in FoldShiftByConstant()
485 Builder->CreateShl(Op0BO->getOperand(1), Op1, Op0BO->getName()); in FoldShiftByConstant()
487 Value *XM = Builder->CreateAnd(V1, ConstantExpr::getShl(CC, Op1), in FoldShiftByConstant()
528 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); in FoldShiftByConstant()
531 Builder->CreateBinOp(I.getOpcode(), Op0BO->getOperand(0), Op1); in FoldShiftByConstant()
748 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitLShr() local
750 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in visitLShr()
792 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitAShr() local
794 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in visitAShr()
800 if (match(Op0, m_Shl(m_Value(X), m_Specific(Op1)))) { in visitAShr()
827 return BinaryOperator::CreateLShr(Op0, Op1); in visitAShr()