Lines Matching refs:orig_block
165 void SuperblockCloner::RemapOrigInternalOrIncomingEdge(HBasicBlock* orig_block, in RemapOrigInternalOrIncomingEdge() argument
170 size_t this_index = orig_succ->GetPredecessorIndexOf(orig_block); in RemapOrigInternalOrIncomingEdge()
195 orig_block->ReplaceSuccessor(orig_succ, copy_succ); in RemapOrigInternalOrIncomingEdge()
199 void SuperblockCloner::AddCopyInternalEdge(HBasicBlock* orig_block, in AddCopyInternalEdge() argument
202 HBasicBlock* copy_block = GetBlockCopy(orig_block); in AddCopyInternalEdge()
206 size_t orig_index = orig_succ->GetPredecessorIndexOf(orig_block); in AddCopyInternalEdge()
215 void SuperblockCloner::RemapCopyInternalEdge(HBasicBlock* orig_block, in RemapCopyInternalEdge() argument
218 HBasicBlock* copy_block = GetBlockCopy(orig_block); in RemapCopyInternalEdge()
222 size_t orig_index = orig_succ->GetPredecessorIndexOf(orig_block); in RemapCopyInternalEdge()
457 HBasicBlock* orig_block = GetBlockById(e.GetFrom()); in RemapEdgesSuccessors() local
459 RemapOrigInternalOrIncomingEdge(orig_block, orig_succ); in RemapEdgesSuccessors()
464 HBasicBlock* orig_block = GetBlockById(orig_block_id); in RemapEdgesSuccessors() local
466 for (HBasicBlock* orig_succ : orig_block->GetSuccessors()) { in RemapEdgesSuccessors()
471 HBasicBlock* copy_block = GetBlockCopy(orig_block); in RemapEdgesSuccessors()
481 RemapCopyInternalEdge(orig_block, orig_succ); in RemapEdgesSuccessors()
483 AddCopyInternalEdge(orig_block, orig_succ); in RemapEdgesSuccessors()
487 RemapOrigInternalOrIncomingEdge(orig_block, orig_succ); in RemapEdgesSuccessors()
507 HBasicBlock* orig_block = entry.first; in ResolveDataFlow() local
509 for (HInstructionIterator it(orig_block->GetPhis()); !it.Done(); it.Advance()) { in ResolveDataFlow()
517 for (HInstructionIterator it(orig_block->GetInstructions()); !it.Done(); it.Advance()) { in ResolveDataFlow()
947 HBasicBlock* orig_block = entry.first; in CleanUp() local
948 for (HInstructionIterator inst_it(orig_block->GetPhis()); !inst_it.Done(); inst_it.Advance()) { in CleanUp()
952 orig_block->RemovePhi(phi); in CleanUp()
956 HBasicBlock* copy_block = GetBlockCopy(orig_block); in CleanUp()
971 HBasicBlock* SuperblockCloner::CloneBasicBlock(const HBasicBlock* orig_block) { in CloneBasicBlock() argument
972 HGraph* graph = orig_block->GetGraph(); in CloneBasicBlock()
973 HBasicBlock* copy_block = new (arena_) HBasicBlock(graph, orig_block->GetDexPc()); in CloneBasicBlock()
977 for (HInstructionIterator it(orig_block->GetPhis()); !it.Done(); it.Advance()) { in CloneBasicBlock()
987 for (HInstructionIterator it(orig_block->GetInstructions()); !it.Done(); it.Advance()) { in CloneBasicBlock()
1007 for (HBasicBlock* orig_block : graph_->GetReversePostOrder()) { in CloneBasicBlocks()
1008 if (!IsInOrigBBSet(orig_block)) { in CloneBasicBlocks()
1011 HBasicBlock* copy_block = CloneBasicBlock(orig_block); in CloneBasicBlocks()
1012 bb_map_->Put(orig_block, copy_block); in CloneBasicBlocks()
1014 std::cout << "new block :" << copy_block->GetBlockId() << ": " << orig_block->GetBlockId() << in CloneBasicBlocks()