Home
last modified time | relevance | path

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

/freebsd-10-stable/contrib/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp651 static bool CanEvaluateZExtd(Value *V, Type *Ty, unsigned &BitsToClear) { in CanEvaluateZExtd() argument
652 BitsToClear = 0; in CanEvaluateZExtd()
680 if (!CanEvaluateZExtd(I->getOperand(0), Ty, BitsToClear) || in CanEvaluateZExtd()
684 if (BitsToClear == 0 && Tmp == 0) in CanEvaluateZExtd()
696 APInt::getHighBitsSet(VSize, BitsToClear))) in CanEvaluateZExtd()
707 if (!CanEvaluateZExtd(I->getOperand(0), Ty, BitsToClear)) in CanEvaluateZExtd()
710 BitsToClear = ShiftAmt < BitsToClear ? BitsToClear - ShiftAmt : 0; in CanEvaluateZExtd()
718 if (!CanEvaluateZExtd(I->getOperand(0), Ty, BitsToClear)) in CanEvaluateZExtd()
720 BitsToClear += Amt->getZExtValue(); in CanEvaluateZExtd()
721 if (BitsToClear > V->getType()->getScalarSizeInBits()) in CanEvaluateZExtd()
[all …]