Skip to content

Commit c640f97

Browse files
authored
[TableGen] Don't use inline storage for ReferenceLocs (NFC) (llvm#125231)
The ReferenceLocs are not enabled by default (they are used by the tablegen lsp server), and as such always empty, but still allocate inline storage for the SmallVector. Disabling it saves about 200MB on RISCVGenGlobalISel.inc. (The equivalent field in Record already disables inline storage.)
1 parent 9ff24f5 commit c640f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/TableGen/Record.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ class RecordVal {
15231523
bool IsUsed = false;
15241524

15251525
/// Reference locations to this record value.
1526-
SmallVector<SMRange> ReferenceLocs;
1526+
SmallVector<SMRange, 0> ReferenceLocs;
15271527

15281528
public:
15291529
RecordVal(const Init *N, const RecTy *T, FieldKind K);

0 commit comments

Comments
 (0)