Lines Matching refs:induction_var
270 InductionVariable* induction_var = TryGetInductionVariable(phi); in DetectInductionVariables() local
271 if (induction_var) { in DetectInductionVariables()
272 induction_vars_[phi->id()] = induction_var; in DetectInductionVariables()
273 TRACE(" %i", induction_var->phi()->id()); in DetectInductionVariables()
284 InductionVariable* induction_var = entry.second; in ChangeToInductionVariablePhis() local
286 PhiRepresentationOf(induction_var->phi()->op())); in ChangeToInductionVariablePhis()
287 if (induction_var->upper_bounds().size() == 0 && in ChangeToInductionVariablePhis()
288 induction_var->lower_bounds().size() == 0) { in ChangeToInductionVariablePhis()
292 induction_var->phi()->InsertInput(graph()->zone(), in ChangeToInductionVariablePhis()
293 induction_var->phi()->InputCount() - 1, in ChangeToInductionVariablePhis()
294 induction_var->increment()); in ChangeToInductionVariablePhis()
296 for (auto bound : induction_var->lower_bounds()) { in ChangeToInductionVariablePhis()
297 induction_var->phi()->InsertInput( in ChangeToInductionVariablePhis()
298 graph()->zone(), induction_var->phi()->InputCount() - 1, bound.bound); in ChangeToInductionVariablePhis()
300 for (auto bound : induction_var->upper_bounds()) { in ChangeToInductionVariablePhis()
301 induction_var->phi()->InsertInput( in ChangeToInductionVariablePhis()
302 graph()->zone(), induction_var->phi()->InputCount() - 1, bound.bound); in ChangeToInductionVariablePhis()
305 induction_var->phi(), in ChangeToInductionVariablePhis()
306 common()->InductionVariablePhi(induction_var->phi()->InputCount() - 1)); in ChangeToInductionVariablePhis()
312 InductionVariable* induction_var = entry.second; in ChangeToPhisAndInsertGuards() local
313 if (induction_var->phi()->opcode() == IrOpcode::kInductionVariablePhi) { in ChangeToPhisAndInsertGuards()
316 Node* control = NodeProperties::GetControlInput(induction_var->phi()); in ChangeToPhisAndInsertGuards()
318 induction_var->phi()->TrimInputCount(value_count + 1); in ChangeToPhisAndInsertGuards()
319 induction_var->phi()->ReplaceInput(value_count, control); in ChangeToPhisAndInsertGuards()
321 induction_var->phi(), in ChangeToPhisAndInsertGuards()
326 Node* backedge_value = induction_var->phi()->InputAt(1); in ChangeToPhisAndInsertGuards()
328 Type phi_type = NodeProperties::GetType(induction_var->phi()); in ChangeToPhisAndInsertGuards()
330 Node* loop = NodeProperties::GetControlInput(induction_var->phi()); in ChangeToPhisAndInsertGuards()
333 NodeProperties::GetEffectInput(induction_var->effect_phi(), 1); in ChangeToPhisAndInsertGuards()
337 induction_var->effect_phi()->ReplaceInput(1, rename); in ChangeToPhisAndInsertGuards()
338 induction_var->phi()->ReplaceInput(1, rename); in ChangeToPhisAndInsertGuards()