Home
last modified time | relevance | path

Searched refs:OuterShAmt (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp519 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()
[all …]