mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
commented out popAllTempValues since it leads to a bug - see code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1327 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f90870f622
commit
3113375f90
@ -1111,7 +1111,18 @@ void UltraSparcRegInfo::insertCallerSavingCode(const MachineInstr *MInst,
|
|||||||
// assert( (getInstrInfo()).isCall( MInst->getOpCode() ) );
|
// assert( (getInstrInfo()).isCall( MInst->getOpCode() ) );
|
||||||
|
|
||||||
// Clear the temp area of the stack
|
// Clear the temp area of the stack
|
||||||
PRA.mcInfo.popAllTempValues(target);
|
//PRA.mcInfo.popAllTempValues(target);
|
||||||
|
// TODO*** Don't do this since we can have a situation lik
|
||||||
|
/*
|
||||||
|
|
||||||
|
stx %o1 %i6 1999 <--- inserted by this code
|
||||||
|
stx %o5 %i6 2007
|
||||||
|
|
||||||
|
*****
|
||||||
|
stx %o1 %i6 2007 ???? <-- inserted by statck2stack call arg
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
hash_set<unsigned> PushedRegSet;
|
hash_set<unsigned> PushedRegSet;
|
||||||
|
|
||||||
@ -1279,7 +1290,9 @@ void UltraSparcRegInfo::insertCallerSavingCode(const MachineInstr *MInst,
|
|||||||
} // for each value in the LV set after instruction
|
} // for each value in the LV set after instruction
|
||||||
|
|
||||||
// Clear the temp area of the stack
|
// Clear the temp area of the stack
|
||||||
PRA.mcInfo.popAllTempValues(target);
|
// PRA.mcInfo.popAllTempValues(target);
|
||||||
|
// TODO *** see above call - optimize later
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user