Skip to content

Commit 70f363c

Browse files
nikicgithub-actions[bot]
authored andcommitted
Automerge: [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.)
2 parents 6434a8a + c640f97 commit 70f363c

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)