Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineShifts.cpp68 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, in CanEvaluateShifted() argument
82 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) || in CanEvaluateShifted()
83 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) { in CanEvaluateShifted()
112 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC) && in CanEvaluateShifted()
113 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC); in CanEvaluateShifted()
121 if (isLeftShift) return true; in CanEvaluateShifted()
145 if (!isLeftShift) return true; in CanEvaluateShifted()
165 return CanEvaluateShifted(SI->getTrueValue(), NumBits, isLeftShift, IC) && in CanEvaluateShifted()
166 CanEvaluateShifted(SI->getFalseValue(), NumBits, isLeftShift, IC); in CanEvaluateShifted()
174 if (!CanEvaluateShifted(PN->getIncomingValue(i), NumBits, isLeftShift,IC)) in CanEvaluateShifted()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp188 static Value *GetShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in GetShiftedValue() argument
192 if (isLeftShift) in GetShiftedValue()
212 0, GetShiftedValue(I->getOperand(0), NumBits, isLeftShift, IC, DL)); in GetShiftedValue()
214 1, GetShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in GetShiftedValue()
225 if (isLeftShift) { in GetShiftedValue()
268 if (!isLeftShift) { in GetShiftedValue()
303 1, GetShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in GetShiftedValue()
305 2, GetShiftedValue(I->getOperand(2), NumBits, isLeftShift, IC, DL)); in GetShiftedValue()
314 isLeftShift, IC, DL)); in GetShiftedValue()
324 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp258 static Value *getShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in getShiftedValue() argument
262 if (isLeftShift) in getShiftedValue()
284 0, getShiftedValue(I->getOperand(0), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
286 1, getShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
291 return foldShiftedShift(cast<BinaryOperator>(I), NumBits, isLeftShift, in getShiftedValue()
296 1, getShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
298 2, getShiftedValue(I->getOperand(2), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
307 isLeftShift, IC, DL)); in getShiftedValue()
349 bool isLeftShift = I.getOpcode() == Instruction::Shl; in FoldShiftByConstant() local
358 canEvaluateShifted(Op0, Op1C->getZExtValue(), isLeftShift, *this, &I)) { in FoldShiftByConstant()
[all …]