Lines Matching refs:block

48   for (HBasicBlock* block : graph_->GetLinearOrder()) {  in NumberInstructions()
49 block->SetLifetimeStart(lifetime_position); in NumberInstructions()
51 for (HInstructionIterator inst_it(block->GetPhis()); !inst_it.Done(); inst_it.Advance()) { in NumberInstructions()
68 for (HInstructionIterator inst_it(block->GetInstructions()); !inst_it.Done(); in NumberInstructions()
84 block->SetLifetimeEnd(lifetime_position); in NumberInstructions()
90 for (HBasicBlock* block : graph_->GetLinearOrder()) { in ComputeLiveness()
91 block_infos_[block->GetBlockId()] = in ComputeLiveness()
92 new (allocator_) BlockInfo(allocator_, *block, number_of_ssa_values_); in ComputeLiveness()
171 for (HBasicBlock* block : ReverseRange(graph_->GetLinearOrder())) { in ComputeLiveRanges()
172 BitVector* kill = GetKillSet(*block); in ComputeLiveRanges()
173 BitVector* live_in = GetLiveInSet(*block); in ComputeLiveRanges()
177 for (HBasicBlock* successor : block->GetSuccessors()) { in ComputeLiveRanges()
189 size_t phi_input_index = successor->GetPredecessorIndexOf(block); in ComputeLiveRanges()
193 input->GetLiveInterval()->AddPhiUse(phi, phi_input_index, block); in ComputeLiveRanges()
205 current->GetLiveInterval()->AddRange(block->GetLifetimeStart(), block->GetLifetimeEnd()); in ComputeLiveRanges()
208 for (HBackwardInstructionIterator back_it(block->GetInstructions()); !back_it.Done(); in ComputeLiveRanges()
245 for (HInstructionIterator inst_it(block->GetPhis()); !inst_it.Done(); inst_it.Advance()) { in ComputeLiveRanges()
257 if (block->IsLoopHeader()) { in ComputeLiveRanges()
259 CheckNoLiveInIrreducibleLoop(*block); in ComputeLiveRanges()
261 size_t last_position = block->GetLoopInformation()->GetLifetimeEnd(); in ComputeLiveRanges()
266 current->GetLiveInterval()->AddLoopRange(block->GetLifetimeStart(), last_position); in ComputeLiveRanges()
277 for (const HBasicBlock* block : graph_->GetPostOrder()) { in ComputeLiveInAndLiveOutSets() local
281 if (UpdateLiveOut(*block) && UpdateLiveIn(*block)) { in ComputeLiveInAndLiveOutSets()
283 CheckNoLiveInIrreducibleLoop(*block); in ComputeLiveInAndLiveOutSets()
291 bool SsaLivenessAnalysis::UpdateLiveOut(const HBasicBlock& block) { in UpdateLiveOut() argument
292 BitVector* live_out = GetLiveOutSet(block); in UpdateLiveOut()
295 for (HBasicBlock* successor : block.GetSuccessors()) { in UpdateLiveOut()
304 bool SsaLivenessAnalysis::UpdateLiveIn(const HBasicBlock& block) { in UpdateLiveIn() argument
305 BitVector* live_out = GetLiveOutSet(block); in UpdateLiveIn()
306 BitVector* kill = GetKillSet(block); in UpdateLiveIn()
307 BitVector* live_in = GetLiveInSet(block); in UpdateLiveIn()
359 HBasicBlock* block = liveness.GetBlockFromPosition(GetStart() / 2); in FindFirstRegisterHint() local
361 for (HBasicBlock* predecessor : block->GetPredecessors()) { in FindFirstRegisterHint()