summaryrefslogtreecommitdiff
path: root/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
commit8e98de9979fa08dac650bc6ae884e809da2cfdaa (patch)
tree79ea3361300dcdb65501bd11536dd2e5784a46b0 /lib/CodeGen/RegAllocFast.cpp
parent161b2f45c2413a9aa3bb3003d043f58c21dfd319 (diff)
downloadllvm-8e98de9979fa08dac650bc6ae884e809da2cfdaa.tar.gz
llvm-8e98de9979fa08dac650bc6ae884e809da2cfdaa.tar.bz2
llvm-8e98de9979fa08dac650bc6ae884e809da2cfdaa.tar.xz
Fix a bug where we were counting the alias sets as completely used
registers for fast allocation. Fixes rdar://9207598 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--lib/CodeGen/RegAllocFast.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp
index 7bb849ef54..30ecea0018 100644
--- a/lib/CodeGen/RegAllocFast.cpp
+++ b/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;