summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-04-12 23:23:14 +0000
committerEric Christopher <echristo@apple.com>2011-04-12 23:23:14 +0000
commitd829f43c068e73c2f7d7637a65a69174986f8154 (patch)
tree57fb820ee6f2574b93750d6f34d7ab875ef7ce2a /llvm/lib/CodeGen/RegAllocFast.cpp
parent0e821f46736a9a8a273a3febbbfb0a84be8eedaa (diff)
downloadbcm5719-llvm-d829f43c068e73c2f7d7637a65a69174986f8154.tar.gz
bcm5719-llvm-d829f43c068e73c2f7d7637a65a69174986f8154.zip
Fix a bug where we were counting the alias sets as completely used
registers for fast allocation. Fixes rdar://9207598 llvm-svn: 129408
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index 7bb849ef546..30ecea00185 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -442,8 +442,6 @@ unsigned RAFast::calcSpillCost(unsigned PhysReg) const {
unsigned Cost = 0;
for (const unsigned *AS = TRI->getAliasSet(PhysReg);
unsigned Alias = *AS; ++AS) {
- if (UsedInInstr.test(Alias))
- return spillImpossible;
switch (unsigned VirtReg = PhysRegState[Alias]) {
case regDisabled:
break;
OpenPOWER on IntegriCloud