Home | History | Annotate | Download | only in optimizing

Lines Matching refs:environment

27  * Returns whether `instruction` has all its inputs and environment defined
42 for (HEnvironment* environment = instruction->GetEnvironment();
43 environment != nullptr;
44 environment = environment->GetParent()) {
45 for (size_t i = 0, e = environment->Size(); i < e; ++i) {
46 HInstruction* input = environment->GetInstructionAt(i);
50 // We can move an instruction that takes a loop header phi in the environment:
64 * If `environment` has a loop header phi, we replace it with its first input.
66 static void UpdateLoopPhisIn(HEnvironment* environment, HLoopInformation* info) {
67 for (; environment != nullptr; environment = environment->GetParent()) {
68 for (size_t i = 0, e = environment->Size(); i < e; ++i) {
69 HInstruction* input = environment->GetInstructionAt(i);
71 environment->RemoveAsUserOfInput(i);
73 environment->SetRawEnvAt(i, incoming);
74 incoming->AddEnvUseAt(environment, i);
136 // We need to update the environment if the instruction has a loop header