diff options
author | River Riddle <riddleriver@gmail.com> | 2020-08-07 13:29:11 -0700 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2020-08-07 13:43:24 -0700 |
commit | 86646be3158933330bf3342e9d7e4250945bb70c (patch) | |
tree | 7dadc48a4c668b64aefcad02d681a15939896fff /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 164a02d0fa461c623446bb5e3ee15516bcfad13c (diff) | |
download | llvm-86646be3158933330bf3342e9d7e4250945bb70c.zip llvm-86646be3158933330bf3342e9d7e4250945bb70c.tar.gz llvm-86646be3158933330bf3342e9d7e4250945bb70c.tar.bz2 |
[mlir] Refactor StorageUniquer to require registration of possible storage types
This allows for bucketing the different possible storage types, with each bucket having its own allocator/mutex/instance map. This greatly reduces the amount of lock contention when multi-threading is enabled. On some non-trivial .mlir modules (>300K operations), this led to a compile time decrease of a single conversion pass by around half a second(>25%).
Differential Revision: https://reviews.llvm.org/D82596
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions