mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
No major change - commented some debug code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -129,7 +129,7 @@ void PhyRegAlloc::addInterference(const Value *const Def,
|
|||||||
if( isCallInst ) {
|
if( isCallInst ) {
|
||||||
LROfVar->addCallInterference( (const Instruction *const) Def );
|
LROfVar->addCallInterference( (const Instruction *const) Def );
|
||||||
// cout << "\n ++Added Call Interf to set:";
|
// cout << "\n ++Added Call Interf to set:";
|
||||||
// LROfVar->printSet();
|
//LROfVar->printSet();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(DEBUG_RA > 1) {
|
else if(DEBUG_RA > 1) {
|
||||||
@@ -275,7 +275,7 @@ void PhyRegAlloc::insertCallerSavingCode(const MachineInstr *MInst,
|
|||||||
{
|
{
|
||||||
assert( (TM.getInstrInfo()).isCall( MInst->getOpCode() ) );
|
assert( (TM.getInstrInfo()).isCall( MInst->getOpCode() ) );
|
||||||
|
|
||||||
int StackOff = 10; // ****TODO : Change
|
int StackOff = -8; // ****TODO : Change
|
||||||
hash_set<unsigned> PushedRegSet;
|
hash_set<unsigned> PushedRegSet;
|
||||||
|
|
||||||
// Now find the LR of the return value of the call
|
// Now find the LR of the return value of the call
|
||||||
@@ -349,7 +349,7 @@ void PhyRegAlloc::insertCallerSavingCode(const MachineInstr *MInst,
|
|||||||
((AddedInstrMap[MInst])->InstrnsAfter).push_back(AdIAft);
|
((AddedInstrMap[MInst])->InstrnsAfter).push_back(AdIAft);
|
||||||
|
|
||||||
PushedRegSet.insert( Reg );
|
PushedRegSet.insert( Reg );
|
||||||
StackOff += 4; // ****TODO: Correct ??????
|
StackOff -= 8; // ****TODO: Correct ??????
|
||||||
cout << "\n $$$ Inserted caller saving instr";
|
cout << "\n $$$ Inserted caller saving instr";
|
||||||
|
|
||||||
} // if not already pushed
|
} // if not already pushed
|
||||||
|
@@ -129,7 +129,7 @@ void PhyRegAlloc::addInterference(const Value *const Def,
|
|||||||
if( isCallInst ) {
|
if( isCallInst ) {
|
||||||
LROfVar->addCallInterference( (const Instruction *const) Def );
|
LROfVar->addCallInterference( (const Instruction *const) Def );
|
||||||
// cout << "\n ++Added Call Interf to set:";
|
// cout << "\n ++Added Call Interf to set:";
|
||||||
// LROfVar->printSet();
|
//LROfVar->printSet();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(DEBUG_RA > 1) {
|
else if(DEBUG_RA > 1) {
|
||||||
@@ -275,7 +275,7 @@ void PhyRegAlloc::insertCallerSavingCode(const MachineInstr *MInst,
|
|||||||
{
|
{
|
||||||
assert( (TM.getInstrInfo()).isCall( MInst->getOpCode() ) );
|
assert( (TM.getInstrInfo()).isCall( MInst->getOpCode() ) );
|
||||||
|
|
||||||
int StackOff = 10; // ****TODO : Change
|
int StackOff = -8; // ****TODO : Change
|
||||||
hash_set<unsigned> PushedRegSet;
|
hash_set<unsigned> PushedRegSet;
|
||||||
|
|
||||||
// Now find the LR of the return value of the call
|
// Now find the LR of the return value of the call
|
||||||
@@ -349,7 +349,7 @@ void PhyRegAlloc::insertCallerSavingCode(const MachineInstr *MInst,
|
|||||||
((AddedInstrMap[MInst])->InstrnsAfter).push_back(AdIAft);
|
((AddedInstrMap[MInst])->InstrnsAfter).push_back(AdIAft);
|
||||||
|
|
||||||
PushedRegSet.insert( Reg );
|
PushedRegSet.insert( Reg );
|
||||||
StackOff += 4; // ****TODO: Correct ??????
|
StackOff -= 8; // ****TODO: Correct ??????
|
||||||
cout << "\n $$$ Inserted caller saving instr";
|
cout << "\n $$$ Inserted caller saving instr";
|
||||||
|
|
||||||
} // if not already pushed
|
} // if not already pushed
|
||||||
|
Reference in New Issue
Block a user