This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Replace array allocation pattern by SmallVector in ComputeMappedEditDistance
ClosedPublic

Authored by serge-sans-paille on Jan 25 2023, 11:48 AM.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2023, 11:48 AM
serge-sans-paille requested review of this revision.Jan 25 2023, 11:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2023, 11:48 AM
mehdi_amini accepted this revision.Jan 25 2023, 1:09 PM
This revision is now accepted and ready to land.Jan 25 2023, 1:09 PM
mehdi_amini added inline comments.Jan 25 2023, 1:10 PM
llvm/include/llvm/ADT/edit_distance.h
73

I don't know if the previous size was tuned, but if so we should carry it over to the SmallVector.

I did a quick check and it was indeed tuned