diff options
author | Eric Christopher <echristo@apple.com> | 2011-04-13 00:20:59 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-04-13 00:20:59 +0000 |
commit | 28f4c729f7f7aab395f01478eca198f7afdcf498 (patch) | |
tree | ee3ef1d80d27f1b6ed6fc4860820af8e6661d88c /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | 38068ca35f6c02b199bb83ce97fe41457558f1a1 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |