mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
This logic was accidentally inverted in r78767.
llvm-svn: 78773
This commit is contained in:
parent
9006c48e28
commit
f6fa20e433
@ -532,9 +532,9 @@ SchedulePostRATDList::findSuitableFreeRegister(unsigned AntiDepReg,
|
||||
"Kill and Def maps aren't consistent for AntiDepReg!");
|
||||
assert(((KillIndices[NewReg] == ~0u) != (DefIndices[NewReg] == ~0u)) &&
|
||||
"Kill and Def maps aren't consistent for NewReg!");
|
||||
if (KillIndices[NewReg] == ~0u &&
|
||||
Classes[NewReg] != reinterpret_cast<TargetRegisterClass *>(-1) &&
|
||||
KillIndices[AntiDepReg] <= DefIndices[NewReg])
|
||||
if (KillIndices[NewReg] != ~0u ||
|
||||
Classes[NewReg] == reinterpret_cast<TargetRegisterClass *>(-1) ||
|
||||
KillIndices[AntiDepReg] > DefIndices[NewReg])
|
||||
continue;
|
||||
return NewReg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user