mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-06 07:05:04 -06:00
SPU LLVM: fix jt target duplication bug
This commit is contained in:
parent
a999bccc03
commit
8ad05ce10e
@ -3979,10 +3979,16 @@ public:
|
|||||||
{
|
{
|
||||||
if (m_block_info[target / 4])
|
if (m_block_info[target / 4])
|
||||||
{
|
{
|
||||||
targets.emplace(target, add_block(target));
|
targets.emplace(target, nullptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize target basic blocks
|
||||||
|
for (auto& pair : targets)
|
||||||
|
{
|
||||||
|
pair.second = add_block(pair.first);
|
||||||
|
}
|
||||||
|
|
||||||
// Get jump table bounds (optimization)
|
// Get jump table bounds (optimization)
|
||||||
const u32 start = targets.begin()->first;
|
const u32 start = targets.begin()->first;
|
||||||
const u32 end = targets.rbegin()->first + 4;
|
const u32 end = targets.rbegin()->first + 4;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user