Lines Matching refs:copy_instr
116 void SuperblockCloner::ReplaceInputsWithCopies(HInstruction* copy_instr) { in ReplaceInputsWithCopies() argument
117 DCHECK(!copy_instr->IsPhi()); in ReplaceInputsWithCopies()
118 for (size_t i = 0, e = copy_instr->InputCount(); i < e; i++) { in ReplaceInputsWithCopies()
120 HInstruction* orig_input = copy_instr->InputAt(i); in ReplaceInputsWithCopies()
128 copy_instr->SetRawInputAt(i, copy_input); in ReplaceInputsWithCopies()
132 void SuperblockCloner::DeepCloneEnvironmentWithRemapping(HInstruction* copy_instr, in DeepCloneEnvironmentWithRemapping() argument
135 DeepCloneEnvironmentWithRemapping(copy_instr, orig_env->GetParent()); in DeepCloneEnvironmentWithRemapping()
137 HEnvironment* copy_env = new (arena_) HEnvironment(arena_, *orig_env, copy_instr); in DeepCloneEnvironmentWithRemapping()
154 if (copy_instr->HasEnvironment()) { in DeepCloneEnvironmentWithRemapping()
155 copy_instr->InsertRawEnvironment(copy_env); in DeepCloneEnvironmentWithRemapping()
157 copy_instr->SetRawEnvironment(copy_env); in DeepCloneEnvironmentWithRemapping()
673 HInstruction* copy_instr = GetInstrCopy(orig_instr); in CheckInstructionInputsRemapping() local
684 DCHECK(copy_input->GetBlock()->Dominates(copy_instr->GetBlock())); in CheckInstructionInputsRemapping()
701 DCHECK(copy_input->GetBlock()->Dominates(copy_instr->GetBlock())); in CheckInstructionInputsRemapping()
737 HInstruction* copy_instr = it.second; in VerifyGraph() local
741 if (!copy_instr->IsPhi() && !copy_instr->IsSuspendCheck()) { in VerifyGraph()
979 HInstruction* copy_instr = orig_instr->Clone(arena_); in CloneBasicBlock() local
980 copy_block->AddPhi(copy_instr->AsPhi()); in CloneBasicBlock()
981 copy_instr->AsPhi()->RemoveAllInputs(); in CloneBasicBlock()
983 hir_map_->Put(orig_instr, copy_instr); in CloneBasicBlock()
989 HInstruction* copy_instr = orig_instr->Clone(arena_); in CloneBasicBlock() local
990 ReplaceInputsWithCopies(copy_instr); in CloneBasicBlock()
991 copy_block->AddInstruction(copy_instr); in CloneBasicBlock()
993 DeepCloneEnvironmentWithRemapping(copy_instr, orig_instr->GetEnvironment()); in CloneBasicBlock()
995 hir_map_->Put(orig_instr, copy_instr); in CloneBasicBlock()