summaryrefslogtreecommitdiff
path: root/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
commitd31df87f41891c9ea459282c666c6e1cab9bd4c7 (patch)
tree4f0f9267e62ab679600f1a489f6bbab9c189bc6d /lib/CodeGen/RegAllocFast.cpp
parent066c2f495ae396ce5335e374c45b1e4ace4f2470 (diff)
downloadllvm-d31df87f41891c9ea459282c666c6e1cab9bd4c7.tar.gz
llvm-d31df87f41891c9ea459282c666c6e1cab9bd4c7.tar.bz2
llvm-d31df87f41891c9ea459282c666c6e1cab9bd4c7.tar.xz
Temporarily revert r129408 to see if it brings the bots back.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--lib/CodeGen/RegAllocFast.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocFast.cpp b/lib/CodeGen/RegAllocFast.cpp
index 30ecea0018..7bb849ef54 100644
--- a/lib/CodeGen/RegAllocFast.cpp
+++ b/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;