SPU Analyzer: Improve value propagation

This commit is contained in:
Eladash 2024-04-26 20:39:19 +03:00 committed by Elad Ashkenazi
parent 71dd22a55d
commit ff42459239
2 changed files with 1276 additions and 1063 deletions

File diff suppressed because it is too large Load diff

View file

@ -4186,6 +4186,15 @@ bool spu_thread::is_exec_code(u32 addr, std::span<const u8> ls_ptr, u32 base_add
}
}
if (type == spu_itype::STOPD && !had_conditional)
{
return !avoid_dead_code;
}
if (i != 0 && type == spu_itype::STOPD)
{
return true;
}
if (type & spu_itype::branch)
{
if (type == spu_itype::BR && op.rt && op.rt != 127u)