Lines Matching refs:Op0

26   Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1);  in commonShiftTransforms()  local
33 if (isa<Constant>(Op0)) in commonShiftTransforms()
39 if (Instruction *Res = FoldShiftByConstant(Op0, CUI, I)) in commonShiftTransforms()
321 Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, Constant *Op1, in FoldShiftByConstant() argument
339 CanEvaluateShifted(Op0, COp1->getZExtValue(), isLeftShift, *this, &I)) { in FoldShiftByConstant()
341 " to eliminate shift:\n IN: " << *Op0 << "\n SH: " << I <<"\n"); in FoldShiftByConstant()
344 I, GetShiftedValue(Op0, COp1->getZExtValue(), isLeftShift, *this, DL)); in FoldShiftByConstant()
349 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
355 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)) in FoldShiftByConstant()
362 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in FoldShiftByConstant()
365 if (isa<PHINode>(Op0)) in FoldShiftByConstant()
370 if (TruncInst *TI = dyn_cast<TruncInst>(Op0)) { in FoldShiftByConstant()
413 if (Op0->hasOneUse()) { in FoldShiftByConstant()
414 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) { in FoldShiftByConstant()
542 BinaryOperator *ShiftOp = dyn_cast<BinaryOperator>(Op0); in FoldShiftByConstant()
748 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitLShr() local
753 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Op0)) { in visitLShr()
754 unsigned BitWidth = Op0->getType()->getScalarSizeInBits(); in visitLShr()
763 Constant *RHS = ConstantInt::getSigned(Op0->getType(), isCtPop ? -1:0); in visitLShr()
771 MaskedValueIsZero(Op0, APInt::getLowBitsSet(Op1C->getBitWidth(), ShAmt), in visitLShr()
792 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitAShr() local
800 if (match(Op0, m_Shl(m_Value(X), m_Specific(Op1)))) { in visitAShr()
816 MaskedValueIsZero(Op0,APInt::getLowBitsSet(Op1C->getBitWidth(),ShAmt), in visitAShr()
824 if (MaskedValueIsZero(Op0, in visitAShr()
827 return BinaryOperator::CreateLShr(Op0, Op1); in visitAShr()