mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 20:29:30 +00:00
Add a comment about callee-saved registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67c7989294
commit
ebb0a31103
@ -278,6 +278,8 @@ bool SchedulePostRATDList::BreakAntiDependencies() {
|
||||
// TODO: If the callee saves and restores these, then we can potentially
|
||||
// use them between the save and the restore. To do that, we could scan
|
||||
// the exit blocks to see which of these registers are defined.
|
||||
// Alternatively, calle-saved registers that aren't saved and restored
|
||||
// could be marked live-in in every block.
|
||||
for (const unsigned *I = TRI->getCalleeSavedRegs(); *I; ++I) {
|
||||
unsigned Reg = *I;
|
||||
Classes[Reg] = reinterpret_cast<TargetRegisterClass *>(-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user