SPU LLVM: Fix branch to self at start of block state check

This commit is contained in:
eladash 2019-04-06 23:57:37 +03:00 committed by Ivan
parent eba8e2284b
commit 8da78c098c

View File

@ -3342,7 +3342,7 @@ public:
// Emit state check if necessary (TODO: more conditions)
for (u32 pred : pfound->second)
{
if (pred >= baddr && bi > 0)
if (pred >= baddr)
{
// If this block is a target of a backward branch (possibly loop), emit a check
check_state(baddr);