From 1a32dda4aa1ca008468738aedd100ac389ba6bd9 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 3 Dec 2008 19:30:13 +0000 Subject: Add a comment about callee-saved registers. llvm-svn: 60495 --- llvm/lib/CodeGen/PostRASchedulerList.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/PostRASchedulerList.cpp') diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index 09125d04887..bd9783281cc 100644 --- a/llvm/lib/CodeGen/PostRASchedulerList.cpp +++ b/llvm/lib/CodeGen/PostRASchedulerList.cpp @@ -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(-1); -- cgit v1.2.3