mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 08:26:02 +00:00
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -555,7 +555,7 @@ void StrongPHIElimination::processBlock(MachineBasicBlock* MBB) {
|
|||||||
// Add the renaming set for this PHI node to our overall renaming information
|
// Add the renaming set for this PHI node to our overall renaming information
|
||||||
for (std::map<unsigned, MachineBasicBlock*>::iterator QI = PHIUnion.begin(),
|
for (std::map<unsigned, MachineBasicBlock*>::iterator QI = PHIUnion.begin(),
|
||||||
QE = PHIUnion.end(); QI != QE; ++QI) {
|
QE = PHIUnion.end(); QI != QE; ++QI) {
|
||||||
DEBUG(errs() << "Adding Renaming: " << QI->first << " -> "
|
DEBUG(dbgs() << "Adding Renaming: " << QI->first << " -> "
|
||||||
<< P->getOperand(0).getReg() << "\n");
|
<< P->getOperand(0).getReg() << "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -698,7 +698,7 @@ void StrongPHIElimination::ScheduleCopies(MachineBasicBlock* MBB,
|
|||||||
TII->copyRegToReg(*PI->getParent(), PI, t,
|
TII->copyRegToReg(*PI->getParent(), PI, t,
|
||||||
curr.second, RC, RC);
|
curr.second, RC, RC);
|
||||||
|
|
||||||
DEBUG(errs() << "Inserted copy from " << curr.second << " to " << t
|
DEBUG(dbgs() << "Inserted copy from " << curr.second << " to " << t
|
||||||
<< "\n");
|
<< "\n");
|
||||||
|
|
||||||
// Push temporary on Stacks
|
// Push temporary on Stacks
|
||||||
@@ -715,7 +715,7 @@ void StrongPHIElimination::ScheduleCopies(MachineBasicBlock* MBB,
|
|||||||
TII->copyRegToReg(*MBB, MBB->getFirstTerminator(), curr.second,
|
TII->copyRegToReg(*MBB, MBB->getFirstTerminator(), curr.second,
|
||||||
map[curr.first], RC, RC);
|
map[curr.first], RC, RC);
|
||||||
map[curr.first] = curr.second;
|
map[curr.first] = curr.second;
|
||||||
DEBUG(errs() << "Inserted copy from " << curr.first << " to "
|
DEBUG(dbgs() << "Inserted copy from " << curr.first << " to "
|
||||||
<< curr.second << "\n");
|
<< curr.second << "\n");
|
||||||
|
|
||||||
// Push this copy onto InsertedPHICopies so we can
|
// Push this copy onto InsertedPHICopies so we can
|
||||||
@@ -928,7 +928,7 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction &Fn) {
|
|||||||
unsigned reg = OI->first;
|
unsigned reg = OI->first;
|
||||||
++OI;
|
++OI;
|
||||||
I->second.erase(reg);
|
I->second.erase(reg);
|
||||||
DEBUG(errs() << "Removing Renaming: " << reg << " -> " << I->first
|
DEBUG(dbgs() << "Removing Renaming: " << reg << " -> " << I->first
|
||||||
<< "\n");
|
<< "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -946,7 +946,7 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction &Fn) {
|
|||||||
while (I->second.size()) {
|
while (I->second.size()) {
|
||||||
std::map<unsigned, MachineBasicBlock*>::iterator SI = I->second.begin();
|
std::map<unsigned, MachineBasicBlock*>::iterator SI = I->second.begin();
|
||||||
|
|
||||||
DEBUG(errs() << "Renaming: " << SI->first << " -> " << I->first << "\n");
|
DEBUG(dbgs() << "Renaming: " << SI->first << " -> " << I->first << "\n");
|
||||||
|
|
||||||
if (SI->first != I->first) {
|
if (SI->first != I->first) {
|
||||||
if (mergeLiveIntervals(I->first, SI->first)) {
|
if (mergeLiveIntervals(I->first, SI->first)) {
|
||||||
@@ -978,7 +978,7 @@ bool StrongPHIElimination::runOnMachineFunction(MachineFunction &Fn) {
|
|||||||
R.valno->setCopy(--SI->second->getFirstTerminator());
|
R.valno->setCopy(--SI->second->getFirstTerminator());
|
||||||
R.valno->def = instrIdx.getDefIndex();
|
R.valno->def = instrIdx.getDefIndex();
|
||||||
|
|
||||||
DEBUG(errs() << "Renaming failed: " << SI->first << " -> "
|
DEBUG(dbgs() << "Renaming failed: " << SI->first << " -> "
|
||||||
<< I->first << "\n");
|
<< I->first << "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user