This is an archive of the discontinued LLVM Phabricator instance.

[NFC][SetVector] Update some usages of SetVector to SmallSetVector
ClosedPublic

Authored by 0xdc03 on Jun 9 2023, 4:29 AM.

Details

Summary

This patch is a continuation of D152497. It updates usages of SetVector
that were found in llvm/ and clang/ which were originally specifying either
SmallPtrSet or SmallVector to just using SmallSetVector, as the overhead
of SetVector is reduced with D152497.

This also helps clean up the code a fair bit, and gives a decent speed
boost at -O0 (~0.2%):
https://llvm-compile-time-tracker.com/compare.php?from=9ffdabecabcddde298ff313f5353f9e06590af62&to=97f1c0cde42ba85eaa67cbe89bec8fe45b801f21&stat=instructions%3Au

Diff Detail

Event Timeline

0xdc03 created this revision.Jun 9 2023, 4:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2023, 4:29 AM
0xdc03 requested review of this revision.Jun 9 2023, 4:29 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 9 2023, 4:30 AM
nikic accepted this revision.Jun 9 2023, 8:16 AM

LGTM

This revision is now accepted and ready to land.Jun 9 2023, 8:16 AM
This revision was landed with ongoing or failed builds.Jun 10 2023, 12:07 AM
This revision was automatically updated to reflect the committed changes.