From 7bed06eb37faccdd2057d28c52d01adebb310ff9 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 31 Jan 2025 15:20:32 +0100 Subject: [PATCH] [TableGen] Don't use inline storage for ReferenceLocs (NFC) 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.) --- llvm/include/llvm/TableGen/Record.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h index d9930a48e8084..e04ed34823148 100644 --- a/llvm/include/llvm/TableGen/Record.h +++ b/llvm/include/llvm/TableGen/Record.h @@ -1523,7 +1523,7 @@ class RecordVal { bool IsUsed = false; /// Reference locations to this record value. - SmallVector ReferenceLocs; + SmallVector ReferenceLocs; public: RecordVal(const Init *N, const RecTy *T, FieldKind K);