diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-02-22 20:31:32 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-22 20:31:32 +0000 |
| commit | b6d981bddd0217628af37c697a7237fd295e417e (patch) | |
| tree | 7a4aa2413e4cf776aaccedda41aeaf15947c1e86 /llvm/lib/CodeGen | |
| parent | 52c15b3e6dccb691041df0e2c520bbf3d1d00883 (diff) | |
| download | bcm5719-llvm-b6d981bddd0217628af37c697a7237fd295e417e.tar.gz bcm5719-llvm-b6d981bddd0217628af37c697a7237fd295e417e.zip | |
Same isPhysRegAvailable bug as local register allocator.
llvm-svn: 47500
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocBigBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBigBlock.cpp b/llvm/lib/CodeGen/RegAllocBigBlock.cpp index 38fb5e6894d..0c6c25439a7 100644 --- a/llvm/lib/CodeGen/RegAllocBigBlock.cpp +++ b/llvm/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; } |

