Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopFlatten.cpp98 PHINode *&InductionPHI, Value *&Limit, BinaryOperator *&Increment, in findLoopComponents() argument
127 InductionPHI = nullptr; in findLoopComponents()
131 InductionPHI = Φ in findLoopComponents()
132 LLVM_DEBUG(dbgs() << "Found induction PHI: "; InductionPHI->dump()); in findLoopComponents()
136 if (!InductionPHI) { in findLoopComponents()
161 m_c_Add(m_Specific(InductionPHI), m_ConstantInt<1>()))) { in findLoopComponents()
166 m_c_Add(m_Specific(InductionPHI), m_ConstantInt<1>()))) { in findLoopComponents()
178 assert(InductionPHI->getNumIncomingValues() == 2); in findLoopComponents()
180 if (InductionPHI->getIncomingValueForBlock(Latch) != Increment) { in findLoopComponents()
187 InductionPHI->getIncomingValueForBlock(L->getLoopPreheader())); in findLoopComponents()
H A DLoopInterchange.cpp1309 PHINode *InductionPHI = getInductionVariable(InnerLoop, SE); in transform() local
1310 if (!InductionPHI) { in transform()
1315 if (InductionPHI->getIncomingBlock(0) == InnerLoopPreHeader) in transform()
1316 InnerIndexVar = dyn_cast<Instruction>(InductionPHI->getIncomingValue(1)); in transform()
1318 InnerIndexVar = dyn_cast<Instruction>(InductionPHI->getIncomingValue(0)); in transform()
1321 if (&InductionPHI->getParent()->front() != InductionPHI) in transform()
1322 InductionPHI->moveBefore(&InductionPHI->getParent()->front()); in transform()
1334 auto MoveInstructions = [&i, &WorkList, this, InductionPHI, NewLatch]() { in transform()
1346 UserI->getParent() == NewLatch || UserI == InductionPHI) in transform()
1355 OpI == InductionPHI) in transform()