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 | 24955967926ea5bb5a16058707fc113e2cdcd7ab (patch) | |
tree | d02719fced5b5b6a075e7d0420fc2cc153585207 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 01248e4cdc087d75ece7150045aa78aab2797b6b (diff) | |
download | bcm5719-llvm-24955967926ea5bb5a16058707fc113e2cdcd7ab.tar.gz bcm5719-llvm-24955967926ea5bb5a16058707fc113e2cdcd7ab.zip |
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.
llvm-svn: 175393
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index f22a70716eb..898e165feea 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -851,15 +851,7 @@ MachineBasicBlock::SplitCriticalEdge(MachineBasicBlock *Succ, Pass *P) { // Update all intervals for registers whose uses may have been modified by // updateTerminator(). - iterator FirstTerminator = getFirstTerminator(); - reverse_iterator PreTerminators; - if (FirstTerminator == begin()) - PreTerminators = rend(); - else if (FirstTerminator == end()) - PreTerminators = rbegin(); - else - PreTerminators = reverse_iterator(FirstTerminator); - LIS->repairIntervalsInRange(this, rbegin(), PreTerminators, UsedRegs); + LIS->repairIntervalsInRange(this, getFirstTerminator(), end(), UsedRegs); } if (MachineDominatorTree *MDT = |