Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp70 static bool canEvaluateShiftedShift(unsigned OuterShAmt, bool IsOuterShl, in canEvaluateShiftedShift() argument
90 if (*InnerShiftConst == OuterShAmt) in canEvaluateShiftedShift()
100 if (InnerShiftConst->ugt(OuterShAmt) && InnerShiftConst->ult(TypeWidth)) { in canEvaluateShiftedShift()
103 IsInnerShl ? TypeWidth - InnerShAmt : InnerShAmt - OuterShAmt; in canEvaluateShiftedShift()
104 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift()
195 static Value *foldShiftedShift(BinaryOperator *InnerShift, unsigned OuterShAmt, in foldShiftedShift() argument
224 if (InnerShAmt + OuterShAmt >= TypeWidth) in foldShiftedShift()
227 return NewInnerShift(InnerShAmt + OuterShAmt); in foldShiftedShift()
233 if (InnerShAmt == OuterShAmt) { in foldShiftedShift()
235 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift()
[all …]