TODO comment

llvm-svn: 165605
This commit is contained in:
Andrew Trick 2012-10-10 05:43:16 +00:00
parent 782f561e6a
commit 79d929fd43

View 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)