[llvm] [RISCV] Assert extensions are sorted at compile time. NFCI (PR #77442)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 09:56:01 PST 2024


================
@@ -1062,79 +1059,82 @@ static const char *ImpliedExtsZvl65536b[] = {"zvl32768b"};
 static const char *ImpliedExtsZvl8192b[] = {"zvl4096b"};
 
 struct ImpliedExtsEntry {
-  StringLiteral Name;
+  const char *Name;
----------------
topperc wrote:

Does this have compile time impact? Now we have to do a strlen call every time we search this table.

https://github.com/llvm/llvm-project/pull/77442


More information about the llvm-commits mailing list