- 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).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks (this reminds me of wanting some benchmarks/tracking ...)
mlir/include/mlir/IR/FunctionSupport.h | ||
---|---|---|
598 | An if-then-else seems shorter and simpler here (and below). |
An if-then-else seems shorter and simpler here (and below).