[llvm-branch-commits] [llvm] 4d04a40 - [TableGen] Don't use inline storage for ReferenceLocs (NFC) (#125231)
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Feb 7 12:03:49 PST 2025
Author: Nikita Popov
Date: 2025-02-07T12:03:05-08:00
New Revision: 4d04a406a5a5e13af679018b116fc9975eb85579
URL: https://github.com/llvm/llvm-project/commit/4d04a406a5a5e13af679018b116fc9975eb85579
DIFF: https://github.com/llvm/llvm-project/commit/4d04a406a5a5e13af679018b116fc9975eb85579.diff
LOG: [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 c640f97ccf723e64ff24af225cb995c905538406)
Added:
Modified:
llvm/include/llvm/TableGen/Record.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/TableGen/Record.h b/llvm/include/llvm/TableGen/Record.h
index d9930a48e80840e..e04ed3482314876 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<SMRange> ReferenceLocs;
+ SmallVector<SMRange, 0> ReferenceLocs;
public:
RecordVal(const Init *N, const RecTy *T, FieldKind K);
More information about the llvm-branch-commits
mailing list