[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Aug 31 10:39:26 PDT 2004
Changes in directory llvm/lib/CodeGen:
LiveIntervalAnalysis.cpp updated: 1.120 -> 1.121
---
Log message:
Minor code clarity changes.
---
Diffs of the changes: (+6 -4)
Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.120 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.121
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.120 Fri Aug 27 13:59:22 2004
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp Tue Aug 31 12:39:15 2004
@@ -329,8 +329,9 @@
// of the defining block, potentially live across some blocks, then is
// live into some number of blocks, but gets killed. Start by adding a
// range that goes from this definition to the end of the defining block.
- LiveRange NewLR(defIndex, getInstructionIndex(&mbb->back()) +
- InstrSlots::NUM, ValNum);
+ LiveRange NewLR(defIndex,
+ getInstructionIndex(&mbb->back()) + InstrSlots::NUM,
+ ValNum);
DEBUG(std::cerr << " +" << NewLR);
interval.addRange(NewLR);
@@ -342,7 +343,7 @@
MachineBasicBlock* mbb = mf_->getBlockNumbered(i);
if (!mbb->empty()) {
LiveRange LR(getInstructionIndex(&mbb->front()),
- getInstructionIndex(&mbb->back())+InstrSlots::NUM,
+ getInstructionIndex(&mbb->back()) + InstrSlots::NUM,
ValNum);
interval.addRange(LR);
DEBUG(std::cerr << " +" << LR);
@@ -355,7 +356,8 @@
for (unsigned i = 0, e = vi.Kills.size(); i != e; ++i) {
MachineInstr *Kill = vi.Kills[i];
LiveRange LR(getInstructionIndex(Kill->getParent()->begin()),
- getUseIndex(getInstructionIndex(Kill))+1, ValNum);
+ getUseIndex(getInstructionIndex(Kill))+1,
+ ValNum);
interval.addRange(LR);
DEBUG(std::cerr << " +" << LR);
}
More information about the llvm-commits
mailing list