[all-commits] [llvm/llvm-project] 9f991e: [mlir][StorageUniquer] Use allocators per thread i...

River Riddle via All-commits all-commits at lists.llvm.org
Thu Mar 16 14:56:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f991ed3e82dc9014c56f3b6092a67affc6eb297
      https://github.com/llvm/llvm-project/commit/9f991ed3e82dc9014c56f3b6092a67affc6eb297
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M mlir/lib/Support/StorageUniquer.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list