forked from OSchip/llvm-project
changed debugg message printing - no change to useful code
llvm-svn: 850
This commit is contained in:
parent
3d878424d2
commit
7d23a2bee9
|
@ -350,7 +350,7 @@ void PhyRegAlloc::insertCallerSavingCode(const MachineInstr *MInst,
|
||||||
|
|
||||||
PushedRegSet.insert( Reg );
|
PushedRegSet.insert( Reg );
|
||||||
StackOff -= 8; // ****TODO: Correct ??????
|
StackOff -= 8; // ****TODO: Correct ??????
|
||||||
cout << "\n $$$ Inserted caller saving instr";
|
cerr << "\n $$$ Inserted caller saving instr";
|
||||||
|
|
||||||
} // if not already pushed
|
} // if not already pushed
|
||||||
|
|
||||||
|
@ -405,9 +405,9 @@ void PhyRegAlloc::updateMachineCode()
|
||||||
|
|
||||||
for( AdIt = IBef.begin(); AdIt != IBef.end() ; ++AdIt ) {
|
for( AdIt = IBef.begin(); AdIt != IBef.end() ; ++AdIt ) {
|
||||||
|
|
||||||
cout << " *$* PREPENDed instr opcode: ";
|
cerr << " *$* PREPENDed instr opcode: ";
|
||||||
cout << TargetInstrDescriptors[(*AdIt)->getOpCode()].opCodeString;
|
cerr << TargetInstrDescriptors[(*AdIt)->getOpCode()].opCodeString;
|
||||||
cout << endl;
|
cerr << endl;
|
||||||
|
|
||||||
MInstIterator = MIVec.insert( MInstIterator, *AdIt );
|
MInstIterator = MIVec.insert( MInstIterator, *AdIt );
|
||||||
++MInstIterator;
|
++MInstIterator;
|
||||||
|
@ -445,8 +445,9 @@ void PhyRegAlloc::updateMachineCode()
|
||||||
// nothing to worry if it's a const or a label
|
// nothing to worry if it's a const or a label
|
||||||
|
|
||||||
if (DEBUG_RA) {
|
if (DEBUG_RA) {
|
||||||
cout << "*NO LR for inst opcode: ";
|
cout << "*NO LR for operand : " << Op ;
|
||||||
cout << TargetInstrDescriptors[MInst->getOpCode()].opCodeString;
|
cout << " [reg:" << Op.getAllocatedRegNum() << "]";
|
||||||
|
cout << " in inst:\t" << *MInst << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if register is not allocated, mark register as invalid
|
// if register is not allocated, mark register as invalid
|
||||||
|
@ -474,9 +475,11 @@ void PhyRegAlloc::updateMachineCode()
|
||||||
|
|
||||||
if (Val->getValueType() == Value::InstructionVal)
|
if (Val->getValueType() == Value::InstructionVal)
|
||||||
{
|
{
|
||||||
cout << "!Warning: No LiveRange for: ";
|
if( DEBUG_RA ) {
|
||||||
printValue( Val); cout << " Type: " << Val->getValueType();
|
cout << "!Warning: No LiveRange for: ";
|
||||||
cout << " RegVal=" << Op.getAllocatedRegNum() << endl;
|
printValue( Val); cout << " Type: " << Val->getValueType();
|
||||||
|
cout << " RegVal=" << Op.getAllocatedRegNum() << endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -510,9 +513,9 @@ void PhyRegAlloc::updateMachineCode()
|
||||||
|
|
||||||
for( AdIt = IAft.begin(); AdIt != IAft.end() ; ++AdIt ) {
|
for( AdIt = IAft.begin(); AdIt != IAft.end() ; ++AdIt ) {
|
||||||
|
|
||||||
cout << " *#* APPENDed instr opcode: ";
|
cerr << " *#* APPENDed instr opcode: ";
|
||||||
cout << TargetInstrDescriptors[(*AdIt)->getOpCode()].opCodeString;
|
cerr << TargetInstrDescriptors[(*AdIt)->getOpCode()].opCodeString;
|
||||||
cout << endl;
|
cerr << endl;
|
||||||
|
|
||||||
MInstIterator = MIVec.insert( MInstIterator, *AdIt );
|
MInstIterator = MIVec.insert( MInstIterator, *AdIt );
|
||||||
++MInstIterator;
|
++MInstIterator;
|
||||||
|
@ -751,7 +754,7 @@ void PhyRegAlloc::allocateRegisters()
|
||||||
|
|
||||||
updateMachineCode();
|
updateMachineCode();
|
||||||
if (DEBUG_RA) {
|
if (DEBUG_RA) {
|
||||||
// PrintMachineInstructions(Meth);
|
PrintMachineInstructions(Meth);
|
||||||
printMachineCode(); // only for DEBUGGING
|
printMachineCode(); // only for DEBUGGING
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue