Lines Matching refs:isLeftShift
258 static Value *getShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in getShiftedValue() argument
262 if (isLeftShift) in getShiftedValue()
284 0, getShiftedValue(I->getOperand(0), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
286 1, getShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
291 return foldShiftedShift(cast<BinaryOperator>(I), NumBits, isLeftShift, in getShiftedValue()
296 1, getShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
298 2, getShiftedValue(I->getOperand(2), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
307 isLeftShift, IC, DL)); in getShiftedValue()
349 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant() local
358 canEvaluateShifted(Op0, Op1C->getZExtValue(), isLeftShift, *this, &I)) { in FoldShiftByConstant()
365 I, getShiftedValue(Op0, Op1C->getZExtValue(), isLeftShift, *this, DL)); in FoldShiftByConstant()
436 if (isLeftShift && Op0BO->getOperand(1)->hasOneUse() && in FoldShiftByConstant()
455 if (isLeftShift && Op0BOOp1->hasOneUse() && in FoldShiftByConstant()
471 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant()
489 if (isLeftShift && Op0BO->getOperand(0)->hasOneUse() && in FoldShiftByConstant()
527 if (isLeftShift && Op0BO->getOpcode() == Instruction::Sub && in FoldShiftByConstant()