Searched refs:IsLeftShift (Results 1 – 2 of 2) sorted by relevance
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 115 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool IsLeftShift, in CanEvaluateShifted() argument 129 if ((IsLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted() 130 (!IsLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted() 159 return CanEvaluateShifted(I->getOperand(0), NumBits, IsLeftShift, IC, I) && in CanEvaluateShifted() 160 CanEvaluateShifted(I->getOperand(1), NumBits, IsLeftShift, IC, I); in CanEvaluateShifted() 164 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in CanEvaluateShifted() 170 return CanEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in CanEvaluateShifted() 171 CanEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in CanEvaluateShifted() 179 if (!CanEvaluateShifted(IncValue, NumBits, IsLeftShift, IC, PN)) in CanEvaluateShifted()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 122 static bool canEvaluateShifted(Value *V, unsigned NumBits, bool IsLeftShift, in canEvaluateShifted() argument 136 if ((IsLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in canEvaluateShifted() 137 (!IsLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in canEvaluateShifted() 166 return canEvaluateShifted(I->getOperand(0), NumBits, IsLeftShift, IC, I) && in canEvaluateShifted() 167 canEvaluateShifted(I->getOperand(1), NumBits, IsLeftShift, IC, I); in canEvaluateShifted() 171 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in canEvaluateShifted() 177 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted() 178 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted() 186 if (!canEvaluateShifted(IncValue, NumBits, IsLeftShift, IC, PN)) in canEvaluateShifted()
|