aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorRahul Joshi <jurahul@google.com>2020-12-28 13:34:11 -0800
committerRahul Joshi <jurahul@google.com>2020-12-28 14:15:47 -0800
commit25007b4d7e094c569d512770bd2397d8667fd3db (patch)
tree478c7c2195febaa5ad265a02dd3af2589fe38fdd /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent5e09e9979bc60f0fca0e80e7f72f1260bd1bbca5 (diff)
downloadllvm-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/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions