aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFObjectFile.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@nondot.org>2021-05-25 14:38:01 -0700
committerChris Lattner <clattner@nondot.org>2021-05-25 14:58:17 -0700
commitaaa2982d7191eaf8638c91d0aa5b16f5523a1fc8 (patch)
tree20d68553001d1f1245487b99082f32e7cf03d71a /llvm/lib/Object/COFFObjectFile.cpp
parenta6a57f03be40cf2c546805155624a206649092ec (diff)
downloadllvm-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