Lines Matching refs:phi
80 StdoutStream{} << "New upper bound for " << phi()->id() << " (loop " in AddUpperBound()
81 << NodeProperties::GetControlInput(phi())->id() in AddUpperBound()
90 StdoutStream{} << "New lower bound for " << phi()->id() << " (loop " in AddLowerBound()
91 << NodeProperties::GetControlInput(phi())->id() in AddLowerBound()
221 InductionVariable* LoopVariableOptimizer::TryGetInductionVariable(Node* phi) { in TryGetInductionVariable() argument
222 DCHECK_EQ(2, phi->op()->ValueInputCount()); in TryGetInductionVariable()
223 Node* loop = NodeProperties::GetControlInput(phi); in TryGetInductionVariable()
225 Node* initial = phi->InputAt(0); in TryGetInductionVariable()
226 Node* arith = phi->InputAt(1); in TryGetInductionVariable()
247 if (input != phi) return nullptr; in TryGetInductionVariable()
259 return new (zone()) InductionVariable(phi, effect_phi, arith, incr, initial, in TryGetInductionVariable()
269 Node* phi = edge.from(); in DetectInductionVariables() local
270 InductionVariable* induction_var = TryGetInductionVariable(phi); in DetectInductionVariables()
272 induction_vars_[phi->id()] = induction_var; in DetectInductionVariables()
273 TRACE(" %i", induction_var->phi()->id()); in DetectInductionVariables()
286 PhiRepresentationOf(induction_var->phi()->op())); in ChangeToInductionVariablePhis()
292 induction_var->phi()->InsertInput(graph()->zone(), in ChangeToInductionVariablePhis()
293 induction_var->phi()->InputCount() - 1, in ChangeToInductionVariablePhis()
297 induction_var->phi()->InsertInput( in ChangeToInductionVariablePhis()
298 graph()->zone(), induction_var->phi()->InputCount() - 1, bound.bound); 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()
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()
338 induction_var->phi()->ReplaceInput(1, rename); in ChangeToPhisAndInsertGuards()