[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
Bill Wendling
isanbard at gmail.com
Wed Nov 15 23:35:33 PST 2006
Changes in directory llvm/lib/CodeGen:
LiveIntervalAnalysis.cpp updated: 1.196 -> 1.197
---
Log message:
Don't recompute getNumOperands for each iteration.
---
Diffs of the changes: (+1 -1)
LiveIntervalAnalysis.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.196 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.197
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.196 Wed Nov 15 20:41:50 2006
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp Thu Nov 16 01:35:18 2006
@@ -277,7 +277,7 @@
MachineInstr *MI = getInstructionFromIndex(Index);
- for (unsigned J = 0; J != MI->getNumOperands(); ++J) {
+ for (unsigned J = 0, e = MI->getNumOperands(); J != e; ++J) {
MachineOperand &MOp = MI->getOperand(J);
if (MOp.isRegister() && rep(MOp.getReg()) == LI->reg)
MOp.setReg(NewVReg);
More information about the llvm-commits
mailing list