diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-08-31 17:39:15 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-08-31 17:39:15 +0000 |
commit | d19e2901c1b79d287d01079659684f3a4951a69e (patch) | |
tree | 6cb15b86a54b64589a9de3dbeb9bef5721376450 /lib/CodeGen | |
parent | 73fb5489424a79dca9352ed8812c96d48804b681 (diff) | |
download | external_llvm-d19e2901c1b79d287d01079659684f3a4951a69e.zip external_llvm-d19e2901c1b79d287d01079659684f3a4951a69e.tar.gz external_llvm-d19e2901c1b79d287d01079659684f3a4951a69e.tar.bz2 |
Minor code clarity changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 1165ae5..3c234bb 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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); } |