summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-04-13 00:20:59 +0000
committerEric Christopher <echristo@apple.com>2011-04-13 00:20:59 +0000
commit28f4c729f7f7aab395f01478eca198f7afdcf498 (patch)
treeee3ef1d80d27f1b6ed6fc4860820af8e6661d88c /llvm/lib/CodeGen/RegAllocFast.cpp
parent38068ca35f6c02b199bb83ce97fe41457558f1a1 (diff)
downloadbcm5719-llvm-28f4c729f7f7aab395f01478eca198f7afdcf498.tar.gz
bcm5719-llvm-28f4c729f7f7aab395f01478eca198f7afdcf498.zip
Temporarily revert r129408 to see if it brings the bots back.
llvm-svn: 129417
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index 30ecea00185..7bb849ef546 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -442,6 +442,8 @@ 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