Skip to content

Commit 96f6234

Browse files
nikicllvmbot
authored andcommitted
[TableGen] Don't use inline storage for ReferenceLocs (NFC) (#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.) (cherry picked from commit c640f97)
1 parent 2caed9d commit 96f6234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/TableGen/Record.h

Lines changed: 1 addition & 1 deletion
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)