Searched refs:isLeftShift (Results 1 – 1 of 1) sorted by relevance
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 70 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, in CanEvaluateShifted() argument 84 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted() 85 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted() 114 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC, I) && in CanEvaluateShifted() 115 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC, I); in CanEvaluateShifted() 123 if (isLeftShift) return true; in CanEvaluateShifted() 148 if (!isLeftShift) return true; in CanEvaluateShifted() 169 return CanEvaluateShifted(SI->getTrueValue(), NumBits, isLeftShift, in CanEvaluateShifted() 171 CanEvaluateShifted(SI->getFalseValue(), NumBits, isLeftShift, IC, SI); in CanEvaluateShifted() 179 if (!CanEvaluateShifted(IncValue, NumBits, isLeftShift, in CanEvaluateShifted() [all …]
|