mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-03 06:38:46 +00:00
clang format
This commit is contained in:
parent
8beb54f8d5
commit
1ae9b74800
2 changed files with 7 additions and 4 deletions
|
@ -92,7 +92,8 @@ CFG::CFG(Common::ObjectPool<Block>& block_pool_, std::span<const GcnInst> inst_l
|
||||||
} else if (block.cond == IR::Condition::False) {
|
} else if (block.cond == IR::Condition::False) {
|
||||||
ASSERT(local_labels.contains(block.branch_false));
|
ASSERT(local_labels.contains(block.branch_false));
|
||||||
} else {
|
} else {
|
||||||
ASSERT(local_labels.contains(block.branch_true) && local_labels.contains(block.branch_false));
|
ASSERT(local_labels.contains(block.branch_true) &&
|
||||||
|
local_labels.contains(block.branch_false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -165,7 +166,8 @@ void CFG::SplitDivergenceScopes() {
|
||||||
curr_begin = -1;
|
curr_begin = -1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// If all instructions in the scope ignore exec masking, we shouldn't insert a scope.
|
// If all instructions in the scope ignore exec masking, we shouldn't insert a
|
||||||
|
// scope.
|
||||||
const auto start = inst_list.begin() + curr_begin + 1;
|
const auto start = inst_list.begin() + curr_begin + 1;
|
||||||
if (!std::ranges::all_of(start, inst_list.begin() + index, IgnoresExecMask)) {
|
if (!std::ranges::all_of(start, inst_list.begin() + index, IgnoresExecMask)) {
|
||||||
// Determine the first instruction affected by the exec mask.
|
// Determine the first instruction affected by the exec mask.
|
||||||
|
@ -207,7 +209,8 @@ void CFG::SplitDivergenceScopes() {
|
||||||
block->branch_true = epi_block;
|
block->branch_true = epi_block;
|
||||||
block->branch_false = nullptr;
|
block->branch_false = nullptr;
|
||||||
|
|
||||||
// If the parent block fails to enter divergence block make it jump to epilogue too
|
// If the parent block fails to enter divergence block make it jump to
|
||||||
|
// epilogue too
|
||||||
blk->branch_false = epi_block;
|
blk->branch_false = epi_block;
|
||||||
} else {
|
} else {
|
||||||
// No epilogue block is needed since the divergence block
|
// No epilogue block is needed since the divergence block
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
#include "shader_recompiler/ir/breadth_first_search.h"
|
#include "shader_recompiler/ir/breadth_first_search.h"
|
||||||
#include "shader_recompiler/ir/ir_emitter.h"
|
#include "shader_recompiler/ir/ir_emitter.h"
|
||||||
#include "shader_recompiler/ir/opcodes.h"
|
#include "shader_recompiler/ir/opcodes.h"
|
||||||
|
#include "shader_recompiler/ir/passes/ir_passes.h"
|
||||||
#include "shader_recompiler/ir/pattern_matching.h"
|
#include "shader_recompiler/ir/pattern_matching.h"
|
||||||
#include "shader_recompiler/ir/program.h"
|
#include "shader_recompiler/ir/program.h"
|
||||||
#include "shader_recompiler/ir/passes/ir_passes.h"
|
|
||||||
#include "shader_recompiler/runtime_info.h"
|
#include "shader_recompiler/runtime_info.h"
|
||||||
|
|
||||||
namespace Shader::Optimization {
|
namespace Shader::Optimization {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue