aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2020-04-24 12:18:18 -0700
committerRiver Riddle <riddleriver@gmail.com>2020-04-24 12:23:32 -0700
commit0e2bd49370197dd8bf2c36ee0ce1275f7cfb515b (patch)
treedb110bba75c74c122586ba61f9e86b59cf64a892 /llvm/lib/Support/Threading.cpp
parent063128f97930c551a43a657084f1632e33245bf6 (diff)
downloadllvm-0e2bd49370197dd8bf2c36ee0ce1275f7cfb515b.zip
llvm-0e2bd49370197dd8bf2c36ee0ce1275f7cfb515b.tar.gz
llvm-0e2bd49370197dd8bf2c36ee0ce1275f7cfb515b.tar.bz2
[mlir][DictionaryAttr] Add a new getWithSorted and use it when possible
The elements of a DictionaryAttr are sorted by name. In many situations, e.g NamedAttributeList, we can guarantee that the elements are sorted on construction and remove the need to perform extra checks. In places with lots of calls to attribute methods, this leads to a good performance improvement. Differential Revision: https://reviews.llvm.org/D78781
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions