Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp187 void factorArrayIndex(Value *ArrayIdx, const SCEV *Base, uint64_t ElementSize,
452 void StraightLineStrengthReduce::factorArrayIndex(Value *ArrayIdx, in factorArrayIndex() argument
458 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
459 ArrayIdx, ElementSize, GEP); in factorArrayIndex()
473 if (match(ArrayIdx, m_NSWMul(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
477 } else if (match(ArrayIdx, m_NSWShl(m_Value(LHS), m_ConstantInt(RHS)))) { in factorArrayIndex()
500 Value *ArrayIdx = *I; in allocateCandidatesAndFindBasisForGEP() local
504 const SCEV *ArrayIdxExpr = SE->getSCEV(ArrayIdx); in allocateCandidatesAndFindBasisForGEP()
511 factorArrayIndex(ArrayIdx, Base, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
516 if (match(ArrayIdx, m_SExt(m_Value(TruncatedArrayIdx)))) in allocateCandidatesAndFindBasisForGEP()