diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-30 19:12:33 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-04-30 19:12:33 +0000 |
commit | ec7e4fff960f166be8a8a39b7ba8cc7baac6b02c (patch) | |
tree | 3e22977fb4b8d5369cc607926fd57a8afba58c0f | |
parent | 7d6eb5a018ef4352730d63dc202cfaf013f489fe (diff) | |
download | external_llvm-ec7e4fff960f166be8a8a39b7ba8cc7baac6b02c.zip external_llvm-ec7e4fff960f166be8a8a39b7ba8cc7baac6b02c.tar.gz external_llvm-ec7e4fff960f166be8a8a39b7ba8cc7baac6b02c.tar.bz2 |
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
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 19bb7e3..9257191 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); } } |