[llvm-commits] [llvm] r165605 - /llvm/trunk/include/llvm/MC/MCSubtargetInfo.h

Andrew Trick atrick at apple.com
Tue Oct 9 22:43:16 PDT 2012


Author: atrick
Date: Wed Oct 10 00:43:16 2012
New Revision: 165605

URL: http://llvm.org/viewvc/llvm-project?rev=165605&view=rev
Log:
TODO comment

Modified:
    llvm/trunk/include/llvm/MC/MCSubtargetInfo.h

Modified: llvm/trunk/include/llvm/MC/MCSubtargetInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSubtargetInfo.h?rev=165605&r1=165604&r2=165605&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSubtargetInfo.h (original)
+++ llvm/trunk/include/llvm/MC/MCSubtargetInfo.h Wed Oct 10 00:43:16 2012
@@ -109,6 +109,9 @@
 
   int getReadAdvanceCycles(const MCSchedClassDesc *SC, unsigned UseIdx,
                            unsigned WriteResID) const {
+    // TODO: The number of read advance entries in a class can be significant
+    // (~50). Consider compressing the WriteID into a dense ID of those that are
+    // used by ReadAdvance and representing them as a bitset.
     for (const MCReadAdvanceEntry *I = &ReadAdvanceTable[SC->ReadAdvanceIdx],
            *E = I + SC->NumReadAdvanceEntries; I != E; ++I) {
       if (I->UseIdx < UseIdx)





More information about the llvm-commits mailing list