Searched defs:isLeftShift (Results 1 - 1 of 1) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp70 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool isLeftShift, argument
84 if ((isLeftShift && match(I, m_LShr(m_Value(), m_ConstantInt(CI)))) ||
85 (!isLeftShift && match(I, m_Shl(m_Value(), m_ConstantInt(CI))))) {
114 return CanEvaluateShifted(I->getOperand(0), NumBits, isLeftShift, IC, I) &&
115 CanEvaluateShifted(I->getOperand(1), NumBits, isLeftShift, IC, I);
123 if (isLeftShift) return true;
148 if (!isLeftShift) return true;
169 return CanEvaluateShifted(SI->getTrueValue(), NumBits, isLeftShift,
171 CanEvaluateShifted(SI->getFalseValue(), NumBits, isLeftShift, IC, SI);
179 if (!CanEvaluateShifted(PN->getIncomingValue(i), NumBits, isLeftShift,
189 GetShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, InstCombiner &IC, const DataLayout &DL) argument
323 bool isLeftShift = I.getOpcode() == Instruction::Shl; local
[all...]

Completed in 122 milliseconds