TODO comment
authorAndrew Trick <atrick@apple.com>
Wed, 10 Oct 2012 05:43:16 +0000 (05:43 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 10 Oct 2012 05:43:16 +0000 (05:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165605 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCSubtargetInfo.h

index 451f435fe399199bac4099c749f7d1ed3c972778..69213cd77d9252dfa7d5b0b0ee8ed554ee33d6b9 100644 (file)
@@ -109,6 +109,9 @@ public:
 
   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)