Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp649 static bool CanEvaluateZExtd(Value *V, Type *Ty, unsigned &BitsToClear, in CanEvaluateZExtd() argument
651 BitsToClear = 0; in CanEvaluateZExtd()
679 if (!CanEvaluateZExtd(I->getOperand(0), Ty, BitsToClear, IC, CxtI) || in CanEvaluateZExtd()
683 if (BitsToClear == 0 && Tmp == 0) in CanEvaluateZExtd()
695 APInt::getHighBitsSet(VSize, BitsToClear), in CanEvaluateZExtd()
707 if (!CanEvaluateZExtd(I->getOperand(0), Ty, BitsToClear, IC, CxtI)) in CanEvaluateZExtd()
710 BitsToClear = ShiftAmt < BitsToClear ? BitsToClear - ShiftAmt : 0; in CanEvaluateZExtd()
718 if (!CanEvaluateZExtd(I->getOperand(0), Ty, BitsToClear, IC, CxtI)) in CanEvaluateZExtd()
720 BitsToClear += Amt->getZExtValue(); in CanEvaluateZExtd()
721 if (BitsToClear > V->getType()->getScalarSizeInBits()) in CanEvaluateZExtd()
[all …]