[PATCH] D95321: [NFC] Fixing build warning with llvm-mca
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 25 03:48:00 PST 2021
lebedev.ri added a comment.
In D95321#2519352 <https://reviews.llvm.org/D95321#2519352>, @andreadb wrote:
> LGTM.
>
> For the record, that warning was firstly introduced by another commit which was meant to be an NFC refactoring
> in preparation for the most recent work that added support for the generation of JSON files.
>
> commit cf6adecd6a8718ee2737ca55e4cd938364b984cc <https://reviews.llvm.org/rGcf6adecd6a8718ee2737ca55e4cd938364b984cc>
> `[llvm-mca][NFC] Refactor views to separate data collection from printing.`
>
> That change was reviewed by @lebedev.ri.
> Using zip may be sub-optimal because it introduces copies of every MCInst in source.
Citation needed.
Even the warning says otherwise.
> While it is true that our typical source size is often less than 16, there may be some
> rare cases where the source is much larger.
> I am not a big fan of using zip in this particular case. However the cost of using zip is probably negligible.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95321/new/
https://reviews.llvm.org/D95321
More information about the llvm-commits
mailing list