projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcfa1ca
)
Same isPhysRegAvailable bug as local register allocator.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 22 Feb 2008 20:31:32 +0000
(20:31 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 22 Feb 2008 20:31:32 +0000
(20:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47500
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/RegAllocBigBlock.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/RegAllocBigBlock.cpp
b/lib/CodeGen/RegAllocBigBlock.cpp
index 38fb5e6894d10198020a77b25cd0a7acd343f72b..0c6c25439a7794c461884db329e8ac6fceac6219 100644
(file)
--- 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;
}