projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0b9c44
)
TODO comment
author
Andrew Trick
<atrick@apple.com>
Wed, 10 Oct 2012 05:43:16 +0000
(
05:43
+0000)
committer
Andrew Trick
<atrick@apple.com>
Wed, 10 Oct 2012 05:43:16 +0000
(
05:43
+0000)
llvm-svn: 165605
llvm/include/llvm/MC/MCSubtargetInfo.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/MC/MCSubtargetInfo.h
b/llvm/include/llvm/MC/MCSubtargetInfo.h
index
451f435
..
69213cd
100644
(file)
--- 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)