diff options
author | Andrew Trick <atrick@apple.com> | 2012-10-10 05:43:16 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-10-10 05:43:16 +0000 |
commit | 2a06d4753ac7995ec9ff2f09bddf3072632eaf5d (patch) | |
tree | cad4977b3b06c197e8f0a6b1c1d9d00802bc1fc6 | |
parent | d0b9c445839583205b3d984d3122c81b2e3dd0fc (diff) | |
download | bcm5719-llvm-2a06d4753ac7995ec9ff2f09bddf3072632eaf5d.tar.gz bcm5719-llvm-2a06d4753ac7995ec9ff2f09bddf3072632eaf5d.zip |
TODO comment
llvm-svn: 165605
-rw-r--r-- | llvm/include/llvm/MC/MCSubtargetInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCSubtargetInfo.h b/llvm/include/llvm/MC/MCSubtargetInfo.h index 451f435fe39..69213cd77d9 100644 --- a/llvm/include/llvm/MC/MCSubtargetInfo.h +++ b/llvm/include/llvm/MC/MCSubtargetInfo.h @@ -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) |