[PATCH] D26967: Put opt-viewer critical items in parallel
Brian Cain via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 5 20:16:19 PST 2016
bcain marked 6 inline comments as done.
bcain added a comment.
Response: most changes made as requested.
================
Comment at: utils/opt-viewer/opt-viewer.py:346
- file_remarks.setdefault(remark.File, dict()).setdefault(remark.Line, []).append(remark)
+ def merge_dicts(dicts):
+ merged = defaultdict(functools.partial(defaultdict, list))
----------------
anemet wrote:
> merge_file_remark_dicts
I left this as-is. It's designed to be an abstract merge among an iterable of dictionaries.
`[ {'a': [3], }, {'a': [4], }, {'b': [6] }] -> {'a': [3,4,], 'b': [6]}`
If you feel it would be better with the specific concepts we're leveraging here, I'll change it.
Repository:
rL LLVM
https://reviews.llvm.org/D26967
More information about the llvm-commits
mailing list