mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-30 00:16:48 +00:00
Commented some popTempArg.. since it leads to a bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -426,7 +426,8 @@ void PhyRegAlloc::updateMachineCode()
|
|||||||
|
|
||||||
// reset the stack offset for temporary variables since we may
|
// reset the stack offset for temporary variables since we may
|
||||||
// need that to spill
|
// need that to spill
|
||||||
mcInfo.popAllTempValues(TM);
|
//mcInfo.popAllTempValues(TM);
|
||||||
|
// TODO ** : do later
|
||||||
|
|
||||||
//for(MachineInstr::val_op_const_iterator OpI(MInst);!OpI.done();++OpI) {
|
//for(MachineInstr::val_op_const_iterator OpI(MInst);!OpI.done();++OpI) {
|
||||||
|
|
||||||
@@ -1026,7 +1027,9 @@ void PhyRegAlloc::colorCallRetArgs()
|
|||||||
|
|
||||||
// Tmp stack poistions are needed by some calls that have spilled args
|
// Tmp stack poistions are needed by some calls that have spilled args
|
||||||
// So reset it before we call each such method
|
// So reset it before we call each such method
|
||||||
mcInfo.popAllTempValues(TM);
|
//mcInfo.popAllTempValues(TM);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( (TM.getInstrInfo()).isCall( OpCode ) )
|
if( (TM.getInstrInfo()).isCall( OpCode ) )
|
||||||
MRI.colorCallArgs( CRMI, LRI, AI, *this );
|
MRI.colorCallArgs( CRMI, LRI, AI, *this );
|
||||||
@@ -1200,6 +1203,8 @@ void PhyRegAlloc::allocateRegisters()
|
|||||||
// a poistion for such spilled LRs
|
// a poistion for such spilled LRs
|
||||||
allocateStackSpace4SpilledLRs();
|
allocateStackSpace4SpilledLRs();
|
||||||
|
|
||||||
|
mcInfo.popAllTempValues(TM); // TODO **Check
|
||||||
|
|
||||||
// color incoming args and call args
|
// color incoming args and call args
|
||||||
colorIncomingArgs();
|
colorIncomingArgs();
|
||||||
colorCallRetArgs();
|
colorCallRetArgs();
|
||||||
@@ -1211,6 +1216,8 @@ void PhyRegAlloc::allocateRegisters()
|
|||||||
printMachineCode(); // only for DEBUGGING
|
printMachineCode(); // only for DEBUGGING
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
printMachineCode(); // only for DEBUGGING
|
printMachineCode(); // only for DEBUGGING
|
||||||
|
|
||||||
@@ -1219,6 +1226,7 @@ void PhyRegAlloc::allocateRegisters()
|
|||||||
cin >> ch;
|
cin >> ch;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -426,7 +426,8 @@ void PhyRegAlloc::updateMachineCode()
|
|||||||
|
|
||||||
// reset the stack offset for temporary variables since we may
|
// reset the stack offset for temporary variables since we may
|
||||||
// need that to spill
|
// need that to spill
|
||||||
mcInfo.popAllTempValues(TM);
|
//mcInfo.popAllTempValues(TM);
|
||||||
|
// TODO ** : do later
|
||||||
|
|
||||||
//for(MachineInstr::val_op_const_iterator OpI(MInst);!OpI.done();++OpI) {
|
//for(MachineInstr::val_op_const_iterator OpI(MInst);!OpI.done();++OpI) {
|
||||||
|
|
||||||
@@ -1026,7 +1027,9 @@ void PhyRegAlloc::colorCallRetArgs()
|
|||||||
|
|
||||||
// Tmp stack poistions are needed by some calls that have spilled args
|
// Tmp stack poistions are needed by some calls that have spilled args
|
||||||
// So reset it before we call each such method
|
// So reset it before we call each such method
|
||||||
mcInfo.popAllTempValues(TM);
|
//mcInfo.popAllTempValues(TM);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( (TM.getInstrInfo()).isCall( OpCode ) )
|
if( (TM.getInstrInfo()).isCall( OpCode ) )
|
||||||
MRI.colorCallArgs( CRMI, LRI, AI, *this );
|
MRI.colorCallArgs( CRMI, LRI, AI, *this );
|
||||||
@@ -1200,6 +1203,8 @@ void PhyRegAlloc::allocateRegisters()
|
|||||||
// a poistion for such spilled LRs
|
// a poistion for such spilled LRs
|
||||||
allocateStackSpace4SpilledLRs();
|
allocateStackSpace4SpilledLRs();
|
||||||
|
|
||||||
|
mcInfo.popAllTempValues(TM); // TODO **Check
|
||||||
|
|
||||||
// color incoming args and call args
|
// color incoming args and call args
|
||||||
colorIncomingArgs();
|
colorIncomingArgs();
|
||||||
colorCallRetArgs();
|
colorCallRetArgs();
|
||||||
@@ -1211,6 +1216,8 @@ void PhyRegAlloc::allocateRegisters()
|
|||||||
printMachineCode(); // only for DEBUGGING
|
printMachineCode(); // only for DEBUGGING
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
printMachineCode(); // only for DEBUGGING
|
printMachineCode(); // only for DEBUGGING
|
||||||
|
|
||||||
@@ -1219,6 +1226,7 @@ void PhyRegAlloc::allocateRegisters()
|
|||||||
cin >> ch;
|
cin >> ch;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user