mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-01 23:12:35 +00:00
Update control_flow_graph.cpp
added comment back in. Removed white space
This commit is contained in:
parent
116119e8ef
commit
3f09e32410
@ -108,8 +108,10 @@ void CFG::EmitBlocks() {
|
|||||||
// TODO: Investigate how to make sure this does not go out of bounds.
|
// TODO: Investigate how to make sure this does not go out of bounds.
|
||||||
// Is inst_list always the size of labels?
|
// Is inst_list always the size of labels?
|
||||||
const size_t end_index = get_index(end) - 1;
|
const size_t end_index = get_index(end) - 1;
|
||||||
const auto& end_inst = inst_list[end_index];
|
const auto& end_inst = inst_list[end_index];
|
||||||
|
|
||||||
|
// Insert block between the labels using the last instruction
|
||||||
|
// as an indicator for branching type.
|
||||||
Block* block = block_pool.Create();
|
Block* block = block_pool.Create();
|
||||||
block->begin = start;
|
block->begin = start;
|
||||||
block->end = end;
|
block->end = end;
|
||||||
|
Loading…
Reference in New Issue
Block a user