[mlir] Remove the Identifier ThreadLocalCache from MLIRContext
authorRiver Riddle <riddleriver@gmail.com>
Tue, 22 Jun 2021 19:13:57 +0000 (19:13 +0000)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 22 Jun 2021 19:56:05 +0000 (19:56 +0000)
commit87e59e47e936f15e407dba1b963393dd96ff96fb
tree0d5a2fcaa322c159f84b84fad1224e2445574559
parente4e31e19bb87d154a2da1f5479f778c13a120b3c
[mlir] Remove the Identifier ThreadLocalCache from MLIRContext

This used to be important for reducing lock contention when accessing identifiers, but
the cost of the cache can be quite large if parsing in a multi-threaded context. After
D104167, the win of keeping a cache is not worth the cost.

Differential Revision: https://reviews.llvm.org/D104737
mlir/lib/IR/MLIRContext.cpp