[Mlir-commits] [mlir] [mlir] Use non thread-local allocator for DistinctAttr when threading is disabled (PR #128566)

Tobias Gysi llvmlistbot at llvm.org
Sat Mar 1 05:54:08 PST 2025


https://github.com/gysit commented:

It seems like we need this additional flag for the crash recovery use case. We could of course drop thread local storage at the cost of more lock contention. It is unclear to me if that would be a good performance vs implementation complexity tradeoff. Probably not.

Another option could be to find a way to prolong the lifetime of the entries in the ThreadLocalCache. I doubt there is a good/low overhead solution though given it relies on thread local variables.


https://github.com/llvm/llvm-project/pull/128566


More information about the Mlir-commits mailing list