Lines Matching refs:HBasicBlock
90 for (HBasicBlock* block : graph->GetPostOrder()) { in OrderLoopsHeadersPredecessors()
101 static void TraverseSubgraphForConnectivity(HBasicBlock* block, HBasicBlockSet* bb_set) { in TraverseSubgraphForConnectivity()
105 for (HBasicBlock* succ : block->GetSuccessors()) { in TraverseSubgraphForConnectivity()
165 void SuperblockCloner::RemapOrigInternalOrIncomingEdge(HBasicBlock* orig_block, in RemapOrigInternalOrIncomingEdge()
166 HBasicBlock* orig_succ) { in RemapOrigInternalOrIncomingEdge()
168 HBasicBlock* copy_succ = GetBlockCopy(orig_succ); in RemapOrigInternalOrIncomingEdge()
199 void SuperblockCloner::AddCopyInternalEdge(HBasicBlock* orig_block, in AddCopyInternalEdge()
200 HBasicBlock* orig_succ) { in AddCopyInternalEdge()
202 HBasicBlock* copy_block = GetBlockCopy(orig_block); in AddCopyInternalEdge()
203 HBasicBlock* copy_succ = GetBlockCopy(orig_succ); in AddCopyInternalEdge()
215 void SuperblockCloner::RemapCopyInternalEdge(HBasicBlock* orig_block, in RemapCopyInternalEdge()
216 HBasicBlock* orig_succ) { in RemapCopyInternalEdge()
218 HBasicBlock* copy_block = GetBlockCopy(orig_block); in RemapCopyInternalEdge()
239 void SuperblockCloner::FindBackEdgesLocal(HBasicBlock* entry_block, ArenaBitVector* local_set) { in FindBackEdgesLocal()
251 ArenaVector<HBasicBlock*> worklist(arena_->Adapter(kArenaAllocGraphBuilder)); in FindBackEdgesLocal()
260 HBasicBlock* current = worklist.back(); in FindBackEdgesLocal()
266 HBasicBlock* successor = current->GetSuccessors()[successors_visited[current_id]++]; in FindBackEdgesLocal()
285 HBasicBlock* block_entry = nullptr; in RecalculateBackEdgesInfo()
309 HBasicBlock* block = GetBlockById(idx); in RecalculateBackEdgesInfo()
320 HBasicBlock* block = GetBlockById(idx); in RecalculateBackEdgesInfo()
335 for (HBasicBlock* block : graph_->GetPostOrder()) { in AnalyzeLoopsLocally()
349 for (HBasicBlock* block : graph_->GetPostOrder()) { in AnalyzeLoopsLocally()
393 HBasicBlock* phi_block = phi->GetBlock(); in ResolvePhi()
396 HBasicBlock* input_block = input->GetBlock(); in ResolvePhi()
402 HBasicBlock* corresponding_block = phi_block->GetPredecessors()[i]; in ResolvePhi()
413 void SuperblockCloner::SearchForSubgraphExits(ArenaVector<HBasicBlock*>* exits) const { in SearchForSubgraphExits()
416 HBasicBlock* block = GetBlockById(block_id); in SearchForSubgraphExits()
417 for (HBasicBlock* succ : block->GetSuccessors()) { in SearchForSubgraphExits()
427 ArenaVector<HBasicBlock*> exits(arena_->Adapter(kArenaAllocSuperblockCloner)); in FindAndSetLocalAreaForAdjustments()
434 for (HBasicBlock* exit : exits) { in FindAndSetLocalAreaForAdjustments()
457 HBasicBlock* orig_block = GetBlockById(e.GetFrom()); in RemapEdgesSuccessors()
458 HBasicBlock* orig_succ = GetBlockById(e.GetTo()); in RemapEdgesSuccessors()
464 HBasicBlock* orig_block = GetBlockById(orig_block_id); in RemapEdgesSuccessors()
466 for (HBasicBlock* orig_succ : orig_block->GetSuccessors()) { in RemapEdgesSuccessors()
471 HBasicBlock* copy_block = GetBlockCopy(orig_block); in RemapEdgesSuccessors()
507 HBasicBlock* orig_block = entry.first; in ResolveDataFlow()
531 HBasicBlock* block = GetBlockById(idx); in CollectLiveOutsAndCheckClonable()
572 ArenaVector<HBasicBlock*> exits(arena_->Adapter(kArenaAllocSuperblockCloner)); in ConstructSubgraphClosedSSA()
580 HBasicBlock* exit_block = exits[0]; in ConstructSubgraphClosedSSA()
645 for (HBasicBlock* bb : graph->GetBlocks()) { in DumpBB()
651 for (HBasicBlock* pred : bb->GetPredecessors()) { in DumpBB()
655 for (HBasicBlock* succ : bb->GetSuccessors()) { in DumpBB()
828 ArenaVector<HBasicBlock*> exits(arena_->Adapter(kArenaAllocSuperblockCloner)); in IsSubgraphClonable()
845 HBasicBlock* block = GetBlockById(idx); in IsFastCase()
947 HBasicBlock* orig_block = entry.first; in CleanUp()
956 HBasicBlock* copy_block = GetBlockCopy(orig_block); in CleanUp()
971 HBasicBlock* SuperblockCloner::CloneBasicBlock(const HBasicBlock* orig_block) { in CloneBasicBlock()
973 HBasicBlock* copy_block = new (arena_) HBasicBlock(graph, orig_block->GetDexPc()); in CloneBasicBlock()
1007 for (HBasicBlock* orig_block : graph_->GetReversePostOrder()) { in CloneBasicBlocks()
1011 HBasicBlock* copy_block = CloneBasicBlock(orig_block); in CloneBasicBlocks()
1030 HBasicBlock* loop_header = loop_info->GetHeader(); in CollectRemappingInfoForPeelUnroll()
1033 for (HBasicBlock* back_edge_block : loop_info->GetBackEdges()) { in CollectRemappingInfoForPeelUnroll()
1050 ArenaVector<HBasicBlock*> entry_blocks( in IsSubgraphConnected()
1055 HBasicBlock* block = graph->GetBlocks()[orig_block_id]; in IsSubgraphConnected()
1056 for (HBasicBlock* pred : block->GetPredecessors()) { in IsSubgraphConnected()
1064 for (HBasicBlock* entry_block : entry_blocks) { in IsSubgraphConnected()
1097 HBasicBlock* PeelUnrollHelper::DoPeelUnrollImpl(bool to_unroll) { in DoPeelUnrollImpl()
1101 HBasicBlock* loop_header = loop_info_->GetHeader(); in DoPeelUnrollImpl()
1136 : bb_map_(std::less<HBasicBlock*>(), in PeelUnrollSimpleHelper()