summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-12 01:44:20 +0000
committerDan Gohman <gohman@apple.com>2009-08-12 01:44:20 +0000
commit2a767c0d2602b5ecc2cd7b242b1bf91be64e4c49 (patch)
treee90d5791010fa868677fa976fb95da46d063400d /llvm/lib/CodeGen
parentfc081d613994f4bb362aea8c3cfb9809bfdb2189 (diff)
downloadbcm5719-llvm-2a767c0d2602b5ecc2cd7b242b1bf91be64e4c49.tar.gz
bcm5719-llvm-2a767c0d2602b5ecc2cd7b242b1bf91be64e4c49.zip
This logic was accidentally inverted in r78767.
llvm-svn: 78773
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/PostRASchedulerList.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp
index 27c73a75951..f3dfb01ff12 100644
--- a/llvm/lib/CodeGen/PostRASchedulerList.cpp
+++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp
@@ -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;
}
OpenPOWER on IntegriCloud