Lines Matching refs:IndVar
182 static Value *findFinalIVValue(const Loop &L, const PHINode &IndVar,
190 if (Op0 == &IndVar || Op0 == &StepInst)
193 if (Op1 == &IndVar || Op1 == &StepInst)
200 PHINode &IndVar,
203 if (!InductionDescriptor::isInductionPHI(&IndVar, &L, &SE, IndDesc))
220 Value *FinalIVValue = findFinalIVValue(L, IndVar, *StepInst);
286 if (PHINode *IndVar = getInductionVariable(SE))
287 return LoopBounds::getBounds(*this, *IndVar, SE);
305 for (PHINode &IndVar : Header->phis()) {
307 if (!InductionDescriptor::isInductionPHI(&IndVar, this, &SE, IndDesc))
313 // IndVar = phi[{InitialValue, preheader}, {StepInst, latch}]
314 // StepInst = IndVar + step
317 return &IndVar;
320 // IndVar = phi[{InitialValue, preheader}, {StepInst, latch}]
321 // StepInst = IndVar + step
322 // cmp = IndVar < FinalValue
323 if (&IndVar == LatchCmpOp0 || &IndVar == LatchCmpOp1)
324 return &IndVar;
332 if (PHINode *IndVar = getInductionVariable(SE))
333 return InductionDescriptor::isInductionPHI(IndVar, this, &SE, IndDesc);