diff options
author | Chris Lattner <clattner@nondot.org> | 2021-05-25 14:38:01 -0700 |
---|---|---|
committer | Chris Lattner <clattner@nondot.org> | 2021-05-25 14:58:17 -0700 |
commit | aaa2982d7191eaf8638c91d0aa5b16f5523a1fc8 (patch) | |
tree | 20d68553001d1f1245487b99082f32e7cf03d71a /llvm/lib/Object/COFFObjectFile.cpp | |
parent | a6a57f03be40cf2c546805155624a206649092ec (diff) | |
download | llvm-aaa2982d7191eaf8638c91d0aa5b16f5523a1fc8.zip llvm-aaa2982d7191eaf8638c91d0aa5b16f5523a1fc8.tar.gz llvm-aaa2982d7191eaf8638c91d0aa5b16f5523a1fc8.tar.bz2 |
[MLIR Core] Cache the empty StringAttr like we do for empty dictionaries. NFC.
MLIRContext holds a few special case values that occur frequently like empty
dictionary and NoneType, which allow us to avoid taking locks to get an instance
of them. Give the empty StringAttr this treatment as well. This cuts several
percent off compile time for CIRCT.
Differential Revision: https://reviews.llvm.org/D103117
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions