diff options
author | Rahul Joshi <jurahul@google.com> | 2020-12-28 13:34:11 -0800 |
---|---|---|
committer | Rahul Joshi <jurahul@google.com> | 2020-12-28 14:15:47 -0800 |
commit | 25007b4d7e094c569d512770bd2397d8667fd3db (patch) | |
tree | 478c7c2195febaa5ad265a02dd3af2589fe38fdd /llvm/lib/CodeGen/MachinePassManager.cpp | |
parent | 5e09e9979bc60f0fca0e80e7f72f1260bd1bbca5 (diff) | |
download | llvm-25007b4d7e094c569d512770bd2397d8667fd3db.zip llvm-25007b4d7e094c569d512770bd2397d8667fd3db.tar.gz llvm-25007b4d7e094c569d512770bd2397d8667fd3db.tar.bz2 |
[MLIR][NFC] Change FunctionLike::setAllArgAttrs/setAllResultAttrs to do a one-shot attribute update.
- Change FunctionLike::setAllArgAttrs() and setAllResultAttrs() to rebuild the new list of
function attributes locally and call setAttr() just once instead of calling
setArgAttr()/setResultAttrs() for each argument which incrementally build the
attribute dictionary and can end up creating a lot of unused DictionaryAttr's (which are
uniqued and nor garbage collected).
Differential Revision: https://reviews.llvm.org/D93870
Diffstat (limited to 'llvm/lib/CodeGen/MachinePassManager.cpp')
0 files changed, 0 insertions, 0 deletions