diff options
author | Dale Johannesen <dalej@apple.com> | 2010-02-10 21:41:41 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2010-02-10 21:41:41 +0000 |
commit | e21765d1c86dedbb5537ba6cf5e0cf156d7283ea (patch) | |
tree | fb9364e13e11a38fbc3dd92ec69302d6a04eab3b /lib/CodeGen | |
parent | e3e7a369f20af66a96830d8bfe52668c9e2e1fa1 (diff) | |
download | external_llvm-e21765d1c86dedbb5537ba6cf5e0cf156d7283ea.zip external_llvm-e21765d1c86dedbb5537ba6cf5e0cf156d7283ea.tar.gz external_llvm-e21765d1c86dedbb5537ba6cf5e0cf156d7283ea.tar.bz2 |
When I rewrote this loop per Chris' preference I
changed its behavior. Oops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 432409a..f6bf433 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -613,6 +613,9 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB, while (mi != E) { if (mi->isDebugValue()) { ++mi; + if (mi != E && !mi->isDebugValue()) { + baseIndex = indexes_->getNextNonNullIndex(baseIndex); + } continue; } if (mi->killsRegister(interval.reg, tri_)) { |