• Home
  • Raw
  • Download

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()
322 Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, Constant *Op1, in FoldShiftByConstant() argument
340 CanEvaluateShifted(Op0, COp1->getZExtValue(), isLeftShift, *this, &I)) { in FoldShiftByConstant()
342 " to eliminate shift:\n IN: " << *Op0 << "\n SH: " << I <<"\n"); in FoldShiftByConstant()
345 I, GetShiftedValue(Op0, COp1->getZExtValue(), isLeftShift, *this, DL)); in FoldShiftByConstant()
350 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant()
356 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)) in FoldShiftByConstant()
363 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) in FoldShiftByConstant()
366 if (isa<PHINode>(Op0)) in FoldShiftByConstant()
371 if (TruncInst *TI = dyn_cast<TruncInst>(Op0)) { in FoldShiftByConstant()
414 if (Op0->hasOneUse()) { in FoldShiftByConstant()
415 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) { in FoldShiftByConstant()
543 BinaryOperator *ShiftOp = dyn_cast<BinaryOperator>(Op0); in FoldShiftByConstant()
749 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitLShr() local
754 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Op0)) { in visitLShr()
755 unsigned BitWidth = Op0->getType()->getScalarSizeInBits(); in visitLShr()
764 Constant *RHS = ConstantInt::getSigned(Op0->getType(), isCtPop ? -1:0); in visitLShr()
772 MaskedValueIsZero(Op0, APInt::getLowBitsSet(Op1C->getBitWidth(), ShAmt), in visitLShr()
793 Value *Op0 = I.getOperand(0), *Op1 = I.getOperand(1); in visitAShr() local
801 if (match(Op0, m_Shl(m_Value(X), m_Specific(Op1)))) { in visitAShr()
817 MaskedValueIsZero(Op0, APInt::getLowBitsSet(Op1C->getBitWidth(), ShAmt), in visitAShr()
825 if (MaskedValueIsZero(Op0, in visitAShr()
828 return BinaryOperator::CreateLShr(Op0, Op1); in visitAShr()