aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2023-03-13 17:32:10 -0700
committerRiver Riddle <riddleriver@gmail.com>2023-03-16 14:56:22 -0700
commit9f991ed3e82dc9014c56f3b6092a67affc6eb297 (patch)
tree5f3104633f1cf220b6309f5646aa9b2355c6857e /clang/lib/Lex/ModuleMap.cpp
parent96118f1b0ab7a18999a4f2199ba1ecd546c68cb8 (diff)
downloadllvm-9f991ed3e82dc9014c56f3b6092a67affc6eb297.zip
llvm-9f991ed3e82dc9014c56f3b6092a67affc6eb297.tar.gz
llvm-9f991ed3e82dc9014c56f3b6092a67affc6eb297.tar.bz2
[mlir][StorageUniquer] Use allocators per thread instead of per shard
This greatly reduces the number of allocators we create, while still retaining thread safety. Reducing the number of allocators is much better for locality and memory usage; this revision drops memory usage for some MLIR heavy workloads (with lots of attributes/types) by >=5%. This is due to the observation that the number of threads is effectively always smaller than the number of parametric attributes/types. Differential Revision: https://reviews.llvm.org/D145991
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions