This commit is contained in:
Elad
2026-07-17 21:16:46 +03:00
parent 5d62ee4b42
commit 1d657c4e63
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -8827,6 +8827,11 @@ spu_program spu_recompiler_base::analyse(const be_t<u32>* ls, u32 entry_point, s
{ {
stats.single++; stats.single++;
if (true)
{
continue;
}
add_pattern(inst_attr::reduced_loop, loop_pc - result.entry_point, 0, std::make_shared<reduced_loop_t>(pattern)); add_pattern(inst_attr::reduced_loop, loop_pc - result.entry_point, 0, std::make_shared<reduced_loop_t>(pattern));
std::string regs = "{"; std::string regs = "{";
+2 -2
View File
@@ -9343,7 +9343,7 @@ public:
const auto a = get_vr(op.ra); const auto a = get_vr(op.ra);
if (auto [ok, x, y] = match_expr(a, match<u32[4]>() + match<u32[4]>()); ok) if (auto [ok, x, y] = match_expr(a, match<u32[4]>() + match<u32[4]>()); ok && false)
{ {
for (auto pair : std::initializer_list<std::pair<llvm_match_t<u32[4]>, llvm_match_t<u32[4]>>>{{x, y}, {y, x}}) for (auto pair : std::initializer_list<std::pair<llvm_match_t<u32[4]>, llvm_match_t<u32[4]>>>{{x, y}, {y, x}})
{ {
@@ -9376,7 +9376,7 @@ public:
{ {
for (auto pair : std::initializer_list<std::pair<llvm_match_t<u32[4]>, llvm_match_t<u32[4]>>>{{x, y}, {y, x}}) for (auto pair : std::initializer_list<std::pair<llvm_match_t<u32[4]>, llvm_match_t<u32[4]>>>{{x, y}, {y, x}})
{ {
if (auto [ok, data] = get_const_vector(pair.first.value, m_pos); ok) if (auto [ok, data] = get_const_vector(pair.first.value, m_pos); ok && false)
{ {
// "sign extend" offset addend // "sign extend" offset addend
const u64 addend = (data._u32[3] >= SPU_LS_SIZE) ? data._u32[3] | ~u64{SPU_LS_SIZE - 1} : data._u32[3]; const u64 addend = (data._u32[3] >= SPU_LS_SIZE) ? data._u32[3] | ~u64{SPU_LS_SIZE - 1} : data._u32[3];