From 28f4c729f7f7aab395f01478eca198f7afdcf498 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 13 Apr 2011 00:20:59 +0000 Subject: Temporarily revert r129408 to see if it brings the bots back. llvm-svn: 129417 --- llvm/lib/CodeGen/RegAllocFast.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp') 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; -- cgit v1.2.3