This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use binary search on the extension tables in RISCVISAInfo.cpp. NFC
ClosedPublic

Authored by craig.topper on Jun 22 2023, 4:45 PM.

Details

Summary

The tables are now sorted by extension name so we can use that to
avoid a linear search.

Diff Detail

Event Timeline

craig.topper created this revision.Jun 22 2023, 4:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 4:45 PM
craig.topper requested review of this revision.Jun 22 2023, 4:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2023, 4:45 PM
asb accepted this revision.Jun 23 2023, 6:10 AM

LGTM

This revision is now accepted and ready to land.Jun 23 2023, 6:10 AM

@asb I think you committed this as part of D151663?

MaskRay accepted this revision.Jun 23 2023, 4:58 PM

Consider linking to D153170 in the summary.

asb added a comment.Jun 26 2023, 2:25 AM

@asb I think you committed this as part of D151663?

Sorry, accidentally committed a dirty tree. Thanks for reverting and cleaning up.