[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Sep 3 00:54:05 PDT 2006
Changes in directory llvm/lib/CodeGen:
LiveIntervalAnalysis.cpp updated: 1.181 -> 1.182
---
Log message:
minor speedup
---
Diffs of the changes: (+3 -3)
LiveIntervalAnalysis.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.181 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.182
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.181 Sat Sep 2 00:32:53 2006
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp Sun Sep 3 02:53:50 2006
@@ -161,7 +161,7 @@
numIntervalsAfter += getNumIntervals();
// perform a final pass over the instructions and compute spill
- // weights, coalesce virtual registers and remove identity moves
+ // weights, coalesce virtual registers and remove identity moves.
const LoopInfo& loopInfo = getAnalysis<LoopInfo>();
for (MachineFunction::iterator mbbi = mf_->begin(), mbbe = mf_->end();
@@ -182,8 +182,8 @@
++numPeep;
}
else {
- for (unsigned i = 0; i < mii->getNumOperands(); ++i) {
- const MachineOperand& mop = mii->getOperand(i);
+ for (unsigned i = 0, e = mii->getNumOperands(); i != e; ++i) {
+ const MachineOperand &mop = mii->getOperand(i);
if (mop.isRegister() && mop.getReg() &&
MRegisterInfo::isVirtualRegister(mop.getReg())) {
// replace register with representative register
More information about the llvm-commits
mailing list