From b84f0be5b123e5d7f66de6eaaf15a9bb1f16817a Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos <alkis@evlogimenos.com> Date: Tue, 31 Aug 2004 17:39:15 +0000 Subject: [PATCH] Minor code clarity changes. llvm-svn: 16123 --- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 1165ae54fe2c..3c234bbd0e12 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -329,8 +329,9 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock* mbb, // 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 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock* mbb, 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 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock* mbb, 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); }