LLVM: block borders fixed

This commit is contained in:
Nekotekina 2017-02-25 21:24:36 +03:00
parent af53ce6f76
commit d0afef47f8
2 changed files with 43 additions and 49 deletions

View file

@ -983,7 +983,7 @@ std::vector<ppu_function> ppu_analyse(const std::vector<std::pair<u32, u32>>& se
const auto next = func.blocks.upper_bound(block.first);
// Normalize block if necessary
if (next != func.blocks.end())
if (next != func.blocks.end() && block.second > next->first - block.first)
{
block.second = next->first - block.first;
}