[all-commits] [llvm/llvm-project] 1aaab3: [RISCV] Don't use std::vector<std::string> for spl...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed May 8 17:22:41 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1aaab334c53d5c52ae337939e9c853e6e1061128
      https://github.com/llvm/llvm-project/commit/1aaab334c53d5c52ae337939e9c853e6e1061128
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M llvm/lib/TargetParser/RISCVISAInfo.cpp

  Log Message:
  -----------
  [RISCV] Don't use std::vector<std::string> for split extensions in RISCVISAInfo::parseArchString. NFC (#91538)

We can use a SmallVector<StringRef>.

Adjust the code so we check for empty strings in the loop instead of
making a copy of the vector returned from StringRef::split.

This overlaps with #91532 which also removed the std::vector, but
that PR may be more controversial.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list