[llvm-commits] [llvm] r129373 - /llvm/trunk/lib/CodeGen/RegAllocBasic.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Tue Apr 12 11:11:28 PDT 2011
Author: stoklund
Date: Tue Apr 12 13:11:28 2011
New Revision: 129373
URL: http://llvm.org/viewvc/llvm-project?rev=129373&view=rev
Log:
Fix a bug in RegAllocBase::addMBBLiveIns() where a basic block could accidentally be skipped.
Modified:
llvm/trunk/lib/CodeGen/RegAllocBasic.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocBasic.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocBasic.cpp?rev=129373&r1=129372&r2=129373&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocBasic.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocBasic.cpp Tue Apr 12 13:11:28 2011
@@ -429,7 +429,7 @@
if (!MBB->isLiveIn(PhysReg))
MBB->addLiveIn(PhysReg);
} else if (SI.start() > Stop)
- MBB = Indexes->getMBBFromIndex(SI.start());
+ MBB = Indexes->getMBBFromIndex(SI.start().getPrevIndex());
if (++MBB == MFE)
break;
tie(Start, Stop) = Indexes->getMBBRange(MBB);
More information about the llvm-commits
mailing list