summaryrefslogtreecommitdiff
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-10-10 05:43:16 +0000
committerAndrew Trick <atrick@apple.com>2012-10-10 05:43:16 +0000
commit85c7b6108f8c8cea77d0bce30343f736f6c15981 (patch)
tree3d375096ce1bfac49bdae4a8c629d55d58a2d0ac /include/llvm/MC
parentdbe6d43dfac78d567973dac8fc2a0190dad5135f (diff)
downloadllvm-85c7b6108f8c8cea77d0bce30343f736f6c15981.tar.gz
llvm-85c7b6108f8c8cea77d0bce30343f736f6c15981.tar.bz2
llvm-85c7b6108f8c8cea77d0bce30343f736f6c15981.tar.xz
TODO comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165605 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MCSubtargetInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSubtargetInfo.h b/include/llvm/MC/MCSubtargetInfo.h
index 451f435fe3..69213cd77d 100644
--- a/include/llvm/MC/MCSubtargetInfo.h
+++ b/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)