diff options
author | Cameron Zwarich <zwarich@apple.com> | 2013-02-17 11:09:00 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2013-02-17 11:09:00 +0000 |
commit | 680c98f6323dde0eae566710ea49497e16499653 (patch) | |
tree | c1ecc8c2401a7dfa44dc7bdc773608f5a9145056 /include | |
parent | 7324d4e593ee2611ee6b272c03b15541fe2df62e (diff) | |
download | external_llvm-680c98f6323dde0eae566710ea49497e16499653.zip external_llvm-680c98f6323dde0eae566710ea49497e16499653.tar.gz external_llvm-680c98f6323dde0eae566710ea49497e16499653.tar.bz2 |
Remove use of reverse iterators in repairIntervalsInRange(). While they were
arguably better than forward iterators for this use case, they are confusing and
there are some implementation problems with reverse iterators and MI bundles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/LiveIntervalAnalysis.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/CodeGen/LiveIntervalAnalysis.h b/include/llvm/CodeGen/LiveIntervalAnalysis.h index 46dfd92..c0de49e 100644 --- a/include/llvm/CodeGen/LiveIntervalAnalysis.h +++ b/include/llvm/CodeGen/LiveIntervalAnalysis.h @@ -282,9 +282,9 @@ namespace llvm { bool UpdateFlags = false); /// repairIntervalsInRange - Update live intervals for instructions in a - /// small range of reverse iterators. It is intended for use after target - /// hooks that may insert or remove instructions, and is only efficient for - /// a small number of instructions. + /// range of iterators. It is intended for use after target hooks that may + /// insert or remove instructions, and is only efficient for a small number + /// of instructions. /// /// OrigRegs is a vector of registers that were originally used by the /// instructions in the range between the two iterators. @@ -292,8 +292,8 @@ namespace llvm { /// Currently, the only only changes that are supported are simple removal /// and addition of uses. void repairIntervalsInRange(MachineBasicBlock *MBB, - MachineBasicBlock::reverse_iterator RBegin, - MachineBasicBlock::reverse_iterator REnd, + MachineBasicBlock::iterator Begin, + MachineBasicBlock::iterator End, ArrayRef<unsigned> OrigRegs); // Register mask functions. |