mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-20 09:24:58 +00:00
Fetch the starting index of the block when assigning intervals. This gets live-in indices
correct in the presence of things like EH labels. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56410 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ca19a3fd11
commit
134eb73fc3
@ -678,12 +678,12 @@ void LiveIntervals::computeIntervals() {
|
|||||||
DOUT << "********** COMPUTING LIVE INTERVALS **********\n"
|
DOUT << "********** COMPUTING LIVE INTERVALS **********\n"
|
||||||
<< "********** Function: "
|
<< "********** Function: "
|
||||||
<< ((Value*)mf_->getFunction())->getName() << '\n';
|
<< ((Value*)mf_->getFunction())->getName() << '\n';
|
||||||
// Track the index of the current machine instr.
|
|
||||||
unsigned MIIndex = 0;
|
|
||||||
|
|
||||||
for (MachineFunction::iterator MBBI = mf_->begin(), E = mf_->end();
|
for (MachineFunction::iterator MBBI = mf_->begin(), E = mf_->end();
|
||||||
MBBI != E; ++MBBI) {
|
MBBI != E; ++MBBI) {
|
||||||
MachineBasicBlock *MBB = MBBI;
|
MachineBasicBlock *MBB = MBBI;
|
||||||
|
// Track the index of the current machine instr.
|
||||||
|
unsigned MIIndex = getMBBStartIdx(MBB);
|
||||||
DOUT << ((Value*)MBB->getBasicBlock())->getName() << ":\n";
|
DOUT << ((Value*)MBB->getBasicBlock())->getName() << ":\n";
|
||||||
|
|
||||||
MachineBasicBlock::iterator MI = MBB->begin(), miEnd = MBB->end();
|
MachineBasicBlock::iterator MI = MBB->begin(), miEnd = MBB->end();
|
||||||
|
Loading…
Reference in New Issue
Block a user