[all-commits] [llvm/llvm-project] e4a93d: [RISCV] Sort the extensions in SupportedExtensions...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Jun 22 11:26:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e4a93d80f425114e4d943ba176b34590c8d0fece
      https://github.com/llvm/llvm-project/commit/e4a93d80f425114e4d943ba176b34590c8d0fece
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-06-22 (Thu, 22 Jun 2023)

  Changed paths:
    M clang/test/Driver/riscv-march-mcpu-mtune.c
    M llvm/lib/Support/RISCVISAInfo.cpp

  Log Message:
  -----------
  [RISCV] Sort the extensions in SupportedExtensions and SupportedExperimentalExtensions.

As the extension list continues to grow it probably makes sense
to use a binary search rather than linear search. Sorting the strings
will make this possible.

This also avoids any question about where to add new strings in
the tables.

Reviewed By: asb

Differential Revision: https://reviews.llvm.org/D153170




More information about the All-commits mailing list