summaryrefslogtreecommitdiffstats
path: root/mlir/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-11-12 13:03:39 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-11-12 13:04:14 -0800
commit8082e3a687da76929e469ec76f86957c534f59db (patch)
tree93ffa090b22d1768fa1e79b3c248f4507d2e398c /mlir/lib/IR/Module.cpp
parent9d985141ef848f352c444cb950096c1e7ccadad9 (diff)
downloadbcm5719-llvm-8082e3a687da76929e469ec76f86957c534f59db.tar.gz
bcm5719-llvm-8082e3a687da76929e469ec76f86957c534f59db.zip
NFC: Change DictionaryAttr::get(StringRef) to use binary search instead of a linear scan.
The elements of a DictionaryAttr are guaranteed to be sorted by name, so we can use a more efficient lookup when searching for an attribute. PiperOrigin-RevId: 280035488
Diffstat (limited to 'mlir/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud