mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-19 19:14:48 +00:00
control_flow_graph: Remove debug code
This commit is contained in:
parent
1ae9b74800
commit
2c2333c921
1 changed files with 0 additions and 20 deletions
|
@ -77,26 +77,6 @@ CFG::CFG(Common::ObjectPool<Block>& block_pool_, std::span<const GcnInst> inst_l
|
|||
EmitBlocks();
|
||||
LinkBlocks();
|
||||
SplitDivergenceScopes();
|
||||
|
||||
std::unordered_map<Block*, u32> local_labels;
|
||||
local_labels.reserve(blocks.size());
|
||||
|
||||
for (Block& block : blocks) {
|
||||
local_labels.emplace(&block, 0);
|
||||
}
|
||||
for (Block& block : blocks) {
|
||||
const u32 label{local_labels.at(&block)};
|
||||
if (block.end_class == EndClass::Branch) {
|
||||
if (block.cond == IR::Condition::True) {
|
||||
ASSERT(local_labels.contains(block.branch_true));
|
||||
} else if (block.cond == IR::Condition::False) {
|
||||
ASSERT(local_labels.contains(block.branch_false));
|
||||
} else {
|
||||
ASSERT(local_labels.contains(block.branch_true) &&
|
||||
local_labels.contains(block.branch_false));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CFG::EmitLabels() {
|
||||
|
|
Loading…
Add table
Reference in a new issue