This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Remove the Identifier ThreadLocalCache from MLIRContext
ClosedPublic

Authored by rriddle on Jun 22 2021, 12:14 PM.

Details

Summary

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.

Depends On D104167

Diff Detail

Event Timeline

rriddle created this revision.Jun 22 2021, 12:14 PM
rriddle requested review of this revision.Jun 22 2021, 12:14 PM
mehdi_amini accepted this revision.Jun 22 2021, 12:18 PM
This revision is now accepted and ready to land.Jun 22 2021, 12:18 PM
lattner accepted this revision.Jun 22 2021, 12:24 PM
This revision was landed with ongoing or failed builds.Jun 22 2021, 12:57 PM
This revision was automatically updated to reflect the committed changes.