[llvm-commits] [llvm] r60495 - /llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp

Dan Gohman gohman at apple.com
Wed Dec 3 11:30:20 PST 2008


Author: djg
Date: Wed Dec  3 13:30:13 2008
New Revision: 60495

URL: http://llvm.org/viewvc/llvm-project?rev=60495&view=rev
Log:
Add a comment about callee-saved registers.

Modified:
    llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp

Modified: llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp?rev=60495&r1=60494&r2=60495&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp (original)
+++ llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp Wed Dec  3 13:30:13 2008
@@ -278,6 +278,8 @@
   // 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);





More information about the llvm-commits mailing list