Home
last modified time | relevance | path

Searched refs:BitsToClear (Results 1 – 2 of 2) 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 …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCasts.cpp648 static bool CanEvaluateZExtd(Value *V, Type *Ty, unsigned &BitsToClear) { in CanEvaluateZExtd() argument
649 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()
709 BitsToClear += Amt->getZExtValue(); in CanEvaluateZExtd()
710 if (BitsToClear > V->getType()->getScalarSizeInBits()) in CanEvaluateZExtd()
711 BitsToClear = V->getType()->getScalarSizeInBits(); in CanEvaluateZExtd()
718 !CanEvaluateZExtd(I->getOperand(2), Ty, BitsToClear) || in CanEvaluateZExtd()
[all …]