Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp189 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
476 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx, in factorArrayIndex() argument
482 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
483 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
497 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
501 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
534 Value *ArrayIdx = GEP->getOperand(I); in allocateCandidatesAndFindBasisForGEP() local
536 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
541 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx)))) in allocateCandidatesAndFindBasisForGEP()