[RISCV] Use binary search on the extension tables in RISCVISAInfo.cpp. NFC
authorCraig Topper <craig.topper@sifive.com>
Sat, 24 Jun 2023 00:01:28 +0000 (17:01 -0700)
committerCraig Topper <craig.topper@sifive.com>
Sat, 24 Jun 2023 00:23:12 +0000 (17:23 -0700)
commitf2d16b368fcde4cc7e67fe50316eb070d82487f9
treeb3ec10cc3783ac477cac5e8ecafdffc4efc19010
parent076759f068c8b505cd171c6f3cd45112ef580101
[RISCV] Use binary search on the extension tables in RISCVISAInfo.cpp. NFC

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

Reviewed By: asb, MaskRay

Differential Revision: https://reviews.llvm.org/D153598
llvm/lib/Support/RISCVISAInfo.cpp