summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-09-12 02:01:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-09-12 02:01:07 +0000
commitfe4d1e64d55b35fb23ff25cfa52b8d36e99ece47 (patch)
tree53111a73b4934d4b8b4b4eeec3459ddeb408740b /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent9130011d5ff9df9cbcf2067de5dac672921c5bad (diff)
downloadbcm5719-llvm-fe4d1e64d55b35fb23ff25cfa52b8d36e99ece47.tar.gz
bcm5719-llvm-fe4d1e64d55b35fb23ff25cfa52b8d36e99ece47.zip
80 col violations.
llvm-svn: 81598
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index b3e6aa72920..5095e087aa1 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -717,7 +717,8 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
// block to the 'use' slot of the killing instruction.
for (unsigned i = 0, e = vi.Kills.size(); i != e; ++i) {
MachineInstr *Kill = vi.Kills[i];
- MachineInstrIndex killIdx = getUseIndex(getInstructionIndex(Kill)).nextSlot();
+ MachineInstrIndex killIdx =
+ getUseIndex(getInstructionIndex(Kill)).nextSlot();
LiveRange LR(getMBBStartIdx(Kill->getParent()),
killIdx, ValNo);
interval.addRange(LR);
@@ -775,7 +776,8 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
// If this redefinition is dead, we need to add a dummy unit live
// range covering the def slot.
if (MO.isDead())
- interval.addRange(LiveRange(RedefIndex, RedefIndex.nextSlot(), OldValNo));
+ interval.addRange(LiveRange(RedefIndex,
+ RedefIndex.nextSlot(), OldValNo));
DEBUG({
errs() << " RESULT: ";
@@ -793,7 +795,8 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
VNInfo *VNI = interval.getValNumInfo(0);
MachineInstr *Killer = vi.Kills[0];
MachineInstrIndex Start = getMBBStartIdx(Killer->getParent());
- MachineInstrIndex End = getUseIndex(getInstructionIndex(Killer)).nextSlot();
+ MachineInstrIndex End =
+ getUseIndex(getInstructionIndex(Killer)).nextSlot();
DEBUG({
errs() << " Removing [" << Start << "," << End << "] from: ";
interval.print(errs(), tri_);
@@ -2348,7 +2351,7 @@ addIntervalsForSpills(const LiveInterval &li,
if (FoundUse) {
// Also folded uses, do not issue a load.
eraseRestoreInfo(Id, index, VReg, RestoreMBBs, RestoreIdxes);
- nI.removeRange(getLoadIndex(index), getUseIndex(index).nextSlot());
+ nI.removeRange(getLoadIndex(index),getUseIndex(index).nextSlot());
}
nI.removeRange(getDefIndex(index), getStoreIndex(index));
}
@@ -2551,7 +2554,8 @@ bool LiveIntervals::spillPhysRegAroundRegDefsUses(const LiveInterval &li,
continue;
LiveInterval &spli = getInterval(*AS);
if (spli.liveAt(Index))
- spli.removeRange(getLoadIndex(Index), getStoreIndex(Index).nextSlot());
+ spli.removeRange(getLoadIndex(Index),
+ getStoreIndex(Index).nextSlot());
}
}
}
OpenPOWER on IntegriCloud