From: Jakob Stoklund Olesen Date: Tue, 31 Aug 2010 19:54:25 +0000 (+0000) Subject: Ignore unallocatable registers in RegAllocFast. X-Git-Tag: llvmorg-2.8.0-rc0~373 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c325dc907bc84702cc76e64dd25bb1384143fed;p=platform%2Fupstream%2Fllvm.git Ignore unallocatable registers in RegAllocFast. llvm-svn: 112632 --- diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index 8f6496dcac79..237686859fa9 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -736,7 +736,8 @@ void RAFast::AllocateBasicBlock() { // Add live-in registers as live. for (MachineBasicBlock::livein_iterator I = MBB->livein_begin(), E = MBB->livein_end(); I != E; ++I) - definePhysReg(MII, *I, regReserved); + if (Allocatable.test(*I)) + definePhysReg(MII, *I, regReserved); SmallVector VirtDead; SmallVector Coalesced;