mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
This logic was accidentally inverted in r78767.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4ae953b747
commit
da2775767b
@ -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