mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 22:58:39 +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();
|
EmitBlocks();
|
||||||
LinkBlocks();
|
LinkBlocks();
|
||||||
SplitDivergenceScopes();
|
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() {
|
void CFG::EmitLabels() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue