From: Jakob Stoklund Olesen Date: Sat, 30 Apr 2011 19:12:33 +0000 (+0000) Subject: When a physreg is live-in and live through a basic block, make sure its live X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ec7e4fff960f166be8a8a39b7ba8cc7baac6b02c;p=oota-llvm.git When a physreg is live-in and live through a basic block, make sure its live range covers the entire block. The live range can't be terminated at a random instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130619 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 19bb7e34d25..9257191f7fc 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -638,7 +638,7 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB, end = MIIdx.getStoreIndex(); } else { DEBUG(dbgs() << " live through"); - end = baseIndex; + end = getMBBEndIdx(MBB); } }