mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +00:00
Minor code clarity changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16123 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -329,8 +329,9 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock* mbb,
|
|||||||
// of the defining block, potentially live across some blocks, then is
|
// of the defining block, potentially live across some blocks, then is
|
||||||
// live into some number of blocks, but gets killed. Start by adding a
|
// 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.
|
// range that goes from this definition to the end of the defining block.
|
||||||
LiveRange NewLR(defIndex, getInstructionIndex(&mbb->back()) +
|
LiveRange NewLR(defIndex,
|
||||||
InstrSlots::NUM, ValNum);
|
getInstructionIndex(&mbb->back()) + InstrSlots::NUM,
|
||||||
|
ValNum);
|
||||||
DEBUG(std::cerr << " +" << NewLR);
|
DEBUG(std::cerr << " +" << NewLR);
|
||||||
interval.addRange(NewLR);
|
interval.addRange(NewLR);
|
||||||
|
|
||||||
@@ -342,7 +343,7 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock* mbb,
|
|||||||
MachineBasicBlock* mbb = mf_->getBlockNumbered(i);
|
MachineBasicBlock* mbb = mf_->getBlockNumbered(i);
|
||||||
if (!mbb->empty()) {
|
if (!mbb->empty()) {
|
||||||
LiveRange LR(getInstructionIndex(&mbb->front()),
|
LiveRange LR(getInstructionIndex(&mbb->front()),
|
||||||
getInstructionIndex(&mbb->back())+InstrSlots::NUM,
|
getInstructionIndex(&mbb->back()) + InstrSlots::NUM,
|
||||||
ValNum);
|
ValNum);
|
||||||
interval.addRange(LR);
|
interval.addRange(LR);
|
||||||
DEBUG(std::cerr << " +" << 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) {
|
for (unsigned i = 0, e = vi.Kills.size(); i != e; ++i) {
|
||||||
MachineInstr *Kill = vi.Kills[i];
|
MachineInstr *Kill = vi.Kills[i];
|
||||||
LiveRange LR(getInstructionIndex(Kill->getParent()->begin()),
|
LiveRange LR(getInstructionIndex(Kill->getParent()->begin()),
|
||||||
getUseIndex(getInstructionIndex(Kill))+1, ValNum);
|
getUseIndex(getInstructionIndex(Kill))+1,
|
||||||
|
ValNum);
|
||||||
interval.addRange(LR);
|
interval.addRange(LR);
|
||||||
DEBUG(std::cerr << " +" << LR);
|
DEBUG(std::cerr << " +" << LR);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user