aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-22 20:31:32 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-22 20:31:32 +0000
commit672e55060147defd6397be4f07cb880b2f8ab151 (patch)
tree1fda0378043721d2560df50e0cd7570976c94462
parentbcfa1ca9768a0ff0e4c2935832287d7bb9921cec (diff)
Same isPhysRegAvailable bug as local register allocator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47500 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/RegAllocBigBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocBigBlock.cpp b/lib/CodeGen/RegAllocBigBlock.cpp
index 38fb5e6894..0c6c25439a 100644
--- a/lib/CodeGen/RegAllocBigBlock.cpp
+++ b/lib/CodeGen/RegAllocBigBlock.cpp
@@ -385,7 +385,7 @@ bool RABigBlock::isPhysRegAvailable(unsigned PhysReg) const {
// not free!
for (const unsigned *AliasSet = RegInfo->getAliasSet(PhysReg);
*AliasSet; ++AliasSet)
- if (PhysRegsUsed[*AliasSet] != -1) // Aliased register in use?
+ if (PhysRegsUsed[*AliasSet] >= 0) // Aliased register in use?
return false; // Can't use this reg then.
return true;
}