Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp724 static bool canEvaluateZExtd(Value *V, Type *Ty, unsigned &BitsToClear, in canEvaluateZExtd() argument
726 BitsToClear = 0; in canEvaluateZExtd()
754 if (!canEvaluateZExtd(I->getOperand(0), Ty, BitsToClear, IC, CxtI) || in canEvaluateZExtd()
758 if (BitsToClear == 0 && Tmp == 0) in canEvaluateZExtd()
770 APInt::getHighBitsSet(VSize, BitsToClear), in canEvaluateZExtd()
782 if (!canEvaluateZExtd(I->getOperand(0), Ty, BitsToClear, IC, CxtI)) in canEvaluateZExtd()
785 BitsToClear = ShiftAmt < BitsToClear ? BitsToClear - ShiftAmt : 0; in canEvaluateZExtd()
793 if (!canEvaluateZExtd(I->getOperand(0), Ty, BitsToClear, IC, CxtI)) in canEvaluateZExtd()
795 BitsToClear += Amt->getZExtValue(); in canEvaluateZExtd()
796 if (BitsToClear > V->getType()->getScalarSizeInBits()) in canEvaluateZExtd()
[all …]