Lines Matching refs:OuterShAmt
519 static bool canEvaluateShiftedShift(unsigned OuterShAmt, bool IsOuterShl, in canEvaluateShiftedShift() argument
539 if (*InnerShiftConst == OuterShAmt) in canEvaluateShiftedShift()
549 if (InnerShiftConst->ugt(OuterShAmt) && InnerShiftConst->ult(TypeWidth)) { in canEvaluateShiftedShift()
552 IsInnerShl ? TypeWidth - InnerShAmt : InnerShAmt - OuterShAmt; in canEvaluateShiftedShift()
553 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift()
625 static Value *foldShiftedShift(BinaryOperator *InnerShift, unsigned OuterShAmt, in foldShiftedShift() argument
654 if (InnerShAmt + OuterShAmt >= TypeWidth) in foldShiftedShift()
657 return NewInnerShift(InnerShAmt + OuterShAmt); in foldShiftedShift()
663 if (InnerShAmt == OuterShAmt) { in foldShiftedShift()
665 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift()
666 : APInt::getHighBitsSet(TypeWidth, TypeWidth - OuterShAmt); in foldShiftedShift()
676 assert(InnerShAmt > OuterShAmt && in foldShiftedShift()
683 return NewInnerShift(InnerShAmt - OuterShAmt); in foldShiftedShift()