diff options
author | River Riddle <riddleriver@gmail.com> | 2021-03-05 12:42:24 -0800 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2021-03-05 12:47:05 -0800 |
commit | f175ba4a54d3dccfb691138c0c47ca862f03c7db (patch) | |
tree | 65d1c289b424395be48ac5314ea273a1a846cb93 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 29812a6195f9bb3501c5d323a87e1c1926797979 (diff) | |
download | llvm-f175ba4a54d3dccfb691138c0c47ca862f03c7db.zip llvm-f175ba4a54d3dccfb691138c0c47ca862f03c7db.tar.gz llvm-f175ba4a54d3dccfb691138c0c47ca862f03c7db.tar.bz2 |
[mlir][AsmPrinter] Don't use string comparison when filtering list attributes
In .mlir modules with larges amounts of attributes, e.g. a function with a larger number of argument attributes, the string comparison filtering greatly affects compile time. This revision switches to using a SmallDenseSet in these situations, resulting in over a 10x speed up in some situations.
Differential Revision: https://reviews.llvm.org/D97980
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions