[llvm-commits] [llvm] r47500 - /llvm/trunk/lib/CodeGen/RegAllocBigBlock.cpp
Evan Cheng
evan.cheng at apple.com
Fri Feb 22 12:31:33 PST 2008
Author: evancheng
Date: Fri Feb 22 14:31:32 2008
New Revision: 47500
URL: http://llvm.org/viewvc/llvm-project?rev=47500&view=rev
Log:
Same isPhysRegAvailable bug as local register allocator.
Modified:
llvm/trunk/lib/CodeGen/RegAllocBigBlock.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocBigBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocBigBlock.cpp?rev=47500&r1=47499&r2=47500&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocBigBlock.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocBigBlock.cpp Fri Feb 22 14:31:32 2008
@@ -385,7 +385,7 @@
// 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;
}
More information about the llvm-commits
mailing list